JavaScript Data Sets: Index Arrays, Objects, and Constructors

Опубликовано: 03 Май 2019
на канале: 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.


На этой странице сайта вы можете посмотреть видео онлайн JavaScript Data Sets: Index Arrays, Objects, and Constructors длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Coding Commanders 03 Май 2019, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 889 раз и оно понравилось 19 зрителям. Приятного просмотра!