Challenge: Iterating Over Lists
Oppgave
Swipe to start coding
You will work with the same page. In this task, you need to iterate over unordered list (the <ul>
element) and print all its elements. Follow the next steps:
- Iterate over all children of the
ul
element using theel
as iterator. - Within each loop step, display the iterated element (
el
).
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 2. Kapittel 4
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår
Awesome!
Completion rate improved to 4.35
Challenge: Iterating Over Lists
Sveip for å vise menyen
Oppgave
Swipe to start coding
You will work with the same page. In this task, you need to iterate over unordered list (the <ul>
element) and print all its elements. Follow the next steps:
- Iterate over all children of the
ul
element using theel
as iterator. - Within each loop step, display the iterated element (
el
).
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Awesome!
Completion rate improved to 4.35Seksjon 2. Kapittel 4
single