Last active
August 24, 2016 12:18
-
-
Save nemisj/d3250dd8e1dbe1a1cbaa3ba8481c38ce to your computer and use it in GitHub Desktop.
Const implementations in node.js
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 characters
/* | |
node: v4.4.7 - MMMM | |
node: v5.12.0 - MMMM | |
node: v6.3.1 - Maks | |
*/ | |
const s = 'Maks'; | |
for (var i = 0;i < s.length; i++) { | |
const ch = s.charAt(i); | |
console.log('ch:' + ch); | |
} |
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 characters
/* | |
node: v4.4.7 - Maks | |
node: v5.12.0 - Maks | |
node: v6.3.1 - Maks | |
*/ | |
'use strict'; | |
const s = 'Maks'; | |
for (var i = 0;i < s.length; i++) { | |
const ch = s.charAt(i); | |
console.log('ch:' + ch); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment