WHILE Loop

 let i=1;

while(i<=5){
    console.log(i);
    i++;
}
let j=5;
while(j>=1){
    console.log(j);
    j--;
}

Comments

Popular posts from this blog

Callback Hell

TODO list with DOM

Refactoring callback hell code