Would this "for loop" throws any exception? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Would this "for loop" throws any exception?

for(;i<5;i++){ document.write(i); }

9th May 2020, 10:57 PM
Nowshad Hossain Rahat
Nowshad Hossain Rahat - avatar
1 Answer
+ 4
yes if i isn't defined ,if defined it won't
9th May 2020, 11:08 PM
Abhay
Abhay - avatar