+ 3

Please help me to print even numbers and explain

https://code.sololearn.com/WWkmFhqBopPF/?ref=app

28th Jun 2017, 11:38 AM
Mr.Eclipse
Mr.Eclipse - avatar
6 Answers
+ 3
ty @Yasir Khan but im trying to print them in a new line using this statemen___ document.write (i "<\br>")
28th Jun 2017, 11:54 AM
Mr.Eclipse
Mr.Eclipse - avatar
+ 3
tq bro its working
28th Jun 2017, 11:59 AM
Mr.Eclipse
Mr.Eclipse - avatar
+ 3
@calvin bro what is this statement idk cud u expln document.open () and close () functions how it works
28th Jun 2017, 12:47 PM
Mr.Eclipse
Mr.Eclipse - avatar
+ 2
hey guys cud u help me ot...i want to enter value manually of upto threshold
28th Jun 2017, 1:03 PM
Mr.Eclipse
Mr.Eclipse - avatar
28th Jun 2017, 1:45 PM
CalviŐ˛
CalviŐ˛ - avatar
0
The correct way to use document.write is var i=0; document.open(); for(;i<=100;i+=2) { document.write(i + "</br>"); } document.close();
28th Jun 2017, 12:39 PM
CalviŐ˛
CalviŐ˛ - avatar