scrimba
Traversere et array - The easy way
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

Traversere et array - The easy way
AboutCommentsNotes
Traversere et array - The easy way
Expand for more info
index.js
run
preview
console
const filmer = ["Ben Hur", "Spartacus", "Up", "Nemo"];

// Dere på finne et navn som
// filmen får inne i loopen
for(const film of filmer) {
console.log(film);
}

const bokstaver = "ABCDEFGHI";
for(const bokstav of bokstaver) {
console.log(bokstav);
}

const bilder = document.querySelectorAll(".superbilde");
Console
"Ben Hur"
,
"Spartacus"
,
"Up"
,
"Nemo"
,
"ABCDEFGHI"
,
index.html
LIVE