While loop javascript? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 1

While loop javascript?

I understand how to write the code but what can while loop and for loop actually be used for in web development?

12th Jun 2018, 3:41 AM
David CHAMPION - avatar
2 Antworten
+ 6
for loops are mostly for cycling through array items
12th Jun 2018, 8:14 AM
MCJEH - avatar
+ 4
Here a article on MDN web docs to help you get what's the importance of the loops. https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Building_blocks/Looping_code
12th Jun 2018, 4:10 AM
Akash Pal
Akash Pal - avatar