Last active
August 29, 2015 14:17
Revisions
-
ludekstepan revised this gist
Mar 24, 2015 . 2 changed files with 6 additions and 12 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ node --version v0.12.0 node --harmony for-let.js iterating 0 timeout 10 This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,15 +6,3 @@ for (let i = 0; i < 10; i++) { setTimeout(() => console.log('timeout', i), 100); } -
ludekstepan revised this gist
Mar 24, 2015 . 1 changed file with 13 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,4 +5,16 @@ for (let i = 0; i < 10; i++) { i = 10; setTimeout(() => console.log('timeout', i), 100); } /* Output: node --version v0.12.0 node --harmony for-let.js iterating 0 timeout 10 */ -
ludekstepan created this gist
Mar 24, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ "use strict"; for (let i = 0; i < 10; i++) { console.log('iterating ', i); i = 10; setTimeout(() => console.log('timeout', i), 100); }