Logo

Programming-Idioms

History of Idiom 2 > diff from v27 to v28

Edit summary for version 28 by :
[JS] JavaScript can print on console so no need to print on dom

Version 27

2016-02-16, 21:29:53

Version 28

2016-02-16, 21:53:29

Idiom #2 Print Hello 10 times

Loop to execute some code a constant number of times

Idiom #2 Print Hello 10 times

Loop to execute some code a constant number of times

Code
for(i=0;i<10;i++)
	document.write("Hello");
Code
for(i=0;i<10;i++)
	console.log("Hello");