a. for Loop:
- Executes a block of code a specified number of times.
javascript for (var i = 0; i < 5; i++) { console.log(i); }
b. while Loop:
- Executes a block of code as long as a specified condition is true.
javascript var i = 0; while (i < 5) { console.log(i); i++; }
c. do...while Loop:
- Similar to a while loop, but the block of code is executed at least once before the condition is tested.
javascript var i = 0; do { console.log(i); i++; } while (i < 5);
Thanks for learning