JavaScript Data Sets: Index Arrays, Objects, and Constructors

Veröffentlicht am: 03 Mai 2019
auf dem Kanal: Coding Commanders
889
19

JavaScript data sets include index arrays and objects. Object constructors are used to define a new instance of an object.

#JavaScript

Most programming languages have data types, such as arrays and objects, that are designed to hold sets of data. JavaScript is no different! In this lesson we will learn about JavaScript index arrays and objects.

This JavaScript tutorial uses examples from a rpg battle card game I am making on Twitch.

Battle Card RPG Game Dev:
https://www.codingcommanders.com/batt...

Battle Card JavaScript Tutorial (arrays, objects, object constructors):
https://www.codingcommanders.com/batt...

Follow me on Twitch:   / daisychaincosplay  

My battle card game is dedicated to the King of Linux Gaming, Hatnix. Follow Hatnix on Twitch:   / hatnix   and YouTube:
   / channel  

If you do not specify the names of your keys, they will automatically be indexed using numbers. The first value in the set with have an index of 0.

Say we have an array that stores metal bands. Out of that set, we want to access "Slipknot". To access "Slipknot", we can reference it's key.

Another variable that stores sets of data is called an object. An object's keys are often refered to as "properties".

A constructor is used to define a certain type of object and usually starts with a capital letter.


Auf dieser Seite können Sie das Online-Video JavaScript Data Sets: Index Arrays, Objects, and Constructors mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Coding Commanders 03 Mai 2019 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 889 Mal angesehen und es wurde von 19 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!