Programming-Idioms

History of Idiom 2 > diff from v110 to v111

Edit summary for version 111 :
New JS implementation by user [gudza]

Version 110

2020-04-01, 17:14:57

Version 111

2020-04-29, 09:03:11

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
[...Array(10).keys()].map(()=>console.log('Hello'))