input a no. and print it 10 times using loop
Answers
Answered by
1
the loop will run until it reaches the stop condition, each time the loop runs, everything inside the curly brackets is executed.
for (start; stop; how much to change each time)
for(i=1;i<=10;i++) { console.log("your name"); }
everything inside the curly brackets will run 10 times
íƒ ԵհíՏ հҽӀԹժ վօմ Եհҽղ ʍɑɾƘ íԵ ҍɾɑíղӀíҽՏԵ...
for (start; stop; how much to change each time)
for(i=1;i<=10;i++) { console.log("your name"); }
everything inside the curly brackets will run 10 times
íƒ ԵհíՏ հҽӀԹժ վօմ Եհҽղ ʍɑɾƘ íԵ ҍɾɑíղӀíҽՏԵ...
Similar questions
Accountancy,
7 months ago
Math,
7 months ago
Physics,
7 months ago
Geography,
1 year ago
Math,
1 year ago