Review Arrays

Nice work! In this lesson, we learned these concepts regarding arrays:

  • Arrays are lists and are a way to store data in JavaScript. Each item inside of an array is at a numbered position. Arrays are created with brackets [].
  • We can access one item in an array using it's numbered position, with syntax like: myArray[0].
  • Arrays have a length property, which allows you to see how many items are in an array.
  • Arrays also have their own methods, including push and pop, which add and subtract items from an array, respectively.

In the next lesson we'll learn how to loop over our arrays, which can bring our lists to life!


Click 'Up Next' to continue.

Community Forums
Get help and ask questions in the Codecademy Forums
Report a Bug
If you see a bug or any other issue with this page, please report it here.