Logo

Programming-Idioms

History of Idiom 2 > diff from v9 to v10

Edit summary for version 10 by :

Version 9

2015-08-21, 08:30:22

Version 10

2015-08-21, 23:00:40

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 (var i = 0; i < 10; i++) { 
  print("Hello");
} 
Code
for (var i = 0; i < 10; i++) { 
  print("Hello");
} 
Doc URL
https://www.dartlang.org/docs/dart-up-and-running/contents/ch02.html#for-loops
Origin
https://www.dartlang.org/docs/dart-up-and-running/contents/ch02.html#for-loops