Skip to content

Instantly share code, notes, and snippets.

@nemisj
Last active August 24, 2016 12:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nemisj/d3250dd8e1dbe1a1cbaa3ba8481c38ce to your computer and use it in GitHub Desktop.
Save nemisj/d3250dd8e1dbe1a1cbaa3ba8481c38ce to your computer and use it in GitHub Desktop.
Const implementations in node.js
/*
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);
}
/*
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