get it on google playCreated with Sketch.
JavaScript> Arrays

Arrays in JavaScript

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

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

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

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

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

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