scrimba
JavaScript Challenges
Build a Carousel: Looking at the for of loop
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Build a Carousel: Looking at the for of loop
AboutCommentsNotes
Build a Carousel: Looking at the for of loop
Expand for more info
index.js
run
preview
console
const names = ['Karl', 'John', 'Steve'];
const people = [{ name: 'Karl', location: 'UK' }, { name: 'Steve', location: 'US' }];

// looping over names using both for & for of


// looping through an array of objects using both for and for of
Console
/index.html
-3:35