write a javascript program to print number form 10 to 20
Answers
Answered by
5
Answer:
I have one question, how to use for loop in javascript to print the 1...10 numbers without using assignment operator.
Usually we do for(i=1;i<=10;i++) { console.log(i); } but how we can use same without assign value in i
for loop
no assignment
for(var i of [1,2,3,4,5,6,7,8,9,10]) console.log(i);
Done
please mark me as the brainlist answer
Similar questions