I set a loop like as given below how I set delay to print number one by one,any one please give me solid Ans🙏😔 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

I set a loop like as given below how I set delay to print number one by one,any one please give me solid Ans🙏😔

Var a=5; For (a;a>=1;a--){ Document.write(a); } It print suddenly 54321, But I want it print with one by one like first print 5 take dealy 2 sec then print 4 then after 2 sec print 3 ...like as.

18th Jan 2021, 6:39 AM
Md Muzaffarul Haque
Md Muzaffarul Haque - avatar
1 Answer
18th Jan 2021, 7:02 AM
Abhiyantā
Abhiyantā - avatar