Create a gist now

Instantly share code, notes, and snippets.

@nemisj /no-strict.js
Last active Aug 24, 2016

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