+ 9

what is output

for(a=2;a<=9;a++); document.write(a); for(x=3;x<=4;x++); document.write(x);

22nd Jul 2018, 8:16 AM
rohit
2 Respuestas
+ 21
You can check it by yourself in the Code Playground.
22nd Jul 2018, 9:10 AM
Igor Makarsky
Igor Makarsky - avatar
+ 1
output is 105 it is because the condition variable of loop will be one more than the condition at the end of the loop.
22nd Jul 2018, 8:21 AM
Vedant Bang
Vedant Bang - avatar