Make a List, Check It Twice
Discover how to work with arrays in JavaScript by creating lists and looping through them to dynamically update web pages. Learn to add and remove items with push and pop, and reinforce skills with a practical quiz to build confidence in managing data structures and DOM manipulation.
We'll cover the following...
We'll cover the following...
You’ve looped through numbers—now loop through data! In this lesson, you’ll use arrays to hold lists of things and loop through them with ease.
Goal
You will learn to:
Create and use arrays (lists).
Access items by index.
Loop through arrays with a
forloop. ... ... ...