1.

Write a javascript program to print number form 10 to 20​

Answer»

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



Discussion

No Comment Found