Programming-Idioms

History of Idiom 2 > diff from v83 to v84

Edit summary for version 84 :
[JS] Semi-colons

Version 83

2019-09-26, 21:37:44

Version 84

2019-09-26, 21:38:14

Idiom #2 Print Hello 10 times

Loop to execute some code a constant number of times

Illustration

Idiom #2 Print Hello 10 times

Loop to execute some code a constant number of times

Illustration
Code
let count = 0
while (count < 10) {
  count++; 
  console.log('Hello');
}
Code
let count = 0;
while (count < 10) {
  count++; 
  console.log('Hello');
};