+ 2

JavaScript

I can't really diffrentate between while loop n for loop

2nd Jan 2019, 5:16 PM
Ido Dickson Evergreen
Ido Dickson Evergreen - avatar
3 RĂ©ponses
+ 3
For Loops allows you to run through the loop when you know how many times you would like it to run through the loop. for (let y=20; y<=30; y++) { console.log(y); }; While Loops allows more qua input. let i=20; while (i<=30) { console.log(i); i++; }; you can also substitue in a boolean instead of using intergers as well as many other types of variables, hope this helps👍😊
2nd Jan 2019, 5:44 PM
🌮Vincent Berger🌮
🌮Vincent Berger🌮 - avatar
+ 1
Loops hope u understand now
29th Jan 2019, 12:19 PM
Chain hacker