« * K JavaScript: Arrays
const books = ["Dune", "Emma"];
books.push("Holes");
console.log(books.length, books[2]);

It prints:

3 Holes
4 Previous: Loops6 Next: Functions9 Cheat sheet
☆ Save to home · 0 Home · Find · Games · Chat · AI · Setup