Challenge: Iterating Over Lists
Tarea
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
).
Solución
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 2. Capítulo 4