+ 2
JavaScript
I can't really diffrentate between while loop n for loop
3 Answers
+ 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đđ
+ 1
Loops hope u understand now