let sum = 0; for (let i = 0; i < 3; i++) { for (let j = 5; j > 2; j--) { sum = sum + j + i; } } console.log(sum); // ??? code example
Example: js for loops
let i;
for (i = 0; i < 6; ++i) {
console.log("Hello"); // print Hello 6 times
}
let i;
for (i = 0; i < 6; ++i) {
console.log("Hello"); // print Hello 6 times
}