JavaScript Loop Samples

Print numbers from 1 to 10 on the screen. for (i = 1; i <= 10; i++) { document.write(i+"<br>") } print 10 times in the bottom. for (i = 1; i <= 10; i++) { document.write("I love codeblogger"+"<br>") } List the ones with numbers from 1-50 on the screen. for (i = 1; i <=... Continue Reading →

Create a website or blog at WordPress.com

Up ↑

Design a site like this with WordPress.com
Get started