Syntax: arrays
var arrayName = [data, data, data];
True or False: Variables (var) can store both numbers and strings.
True
What is an array?
A 0-indexed data structure that stores lists of data, can store different date types and the same time, and are ordered so the position of each piece of data is fixed.
What is 0-based indexing?
Counting starts from 0 instead of from 1
True or false:
You can treat a string like an array of characters.
True
(e.g., var myArray = [‘hello’, ‘world’]; myArray[0]; // equals ‘hello’
var myName = 'Chloe'; myName[0]; // equals 'C')