@jerrold_langworth Используйте примеры ниже чтобы сделать for или while цикл в Javascript:
1 2 3 4 5 6 7 8 9 10 11 |
// пример for цикла for (let i = 0; i <= 10; i++) { console.log(i); } // while цикл var x = 0; while (x <= 10) { x++; console.log(x) } |