What Is an Array?
Accessing every item
Very often you will want to access every item in the array. You can do this using the for...of
statement:
const birds = ["Parrot", "Falcon", "Owl"]; for (const bird of birds) { console.log(bird); }
Very often you will want to access every item in the array. You can do this using the for...of
statement:
const birds = ["Parrot", "Falcon", "Owl"]; for (const bird of birds) { console.log(bird); }