get it on google playCreated with Sketch.
JavaScript> Arrays

Arrays

To create an empty array, we code [ and ].

var friends = [];
console.log(friends);

We use commas , to separate two or more values in an array, like "Tom" from "Mia".

var friends = ["Tom", "Mia"];
console.log(friends);

Any number of values fits in an array. We add more by coding a comma and the value.

var friends = ["Tom", "Mia", "Lee"];
console.log(friends);
TRY IT ON THE APP