Answers for "for loop jsù"

3

loop javascript

// infinite for loop
for(let i = 1; i > 0; i++) {
    // block of code
}
Posted by: Guest on December-03-2020
0

javascript for loop

// for loop keeps running while condition is TRUE
for (let rep = 1; rep <= 10; rep++) {
   console.log(`Lifting weights repetition ${rep}`);
}
Posted by: Guest on December-08-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language