Loop n vezes JS
n=10
for (let i = 0; i < n; i++) {
console.log("Hi!")
}
//Note that you can directly put the number after the < sign.
Thankful Toucan
n=10
for (let i = 0; i < n; i++) {
console.log("Hi!")
}
//Note that you can directly put the number after the < sign.
for(var i = 0;i<x;i++){
// loop code here
}
var i = 5; // let x = 5
while(i >= 0){
// loop code here
x--;
}