Re:Goodbye var: ES6 variable declarations with let and const
by sickeythecat on Tuesday March 17, 2015 @11:46AM
(#9218719)
Available in the latest version of Node or only io.js?
[ Parent
| on HN ]
Re:Goodbye var: ES6 variable declarations with let and const
by jakerella86 on Tuesday March 17, 2015 @11:57AM
(#9218808)
It's in Node.js v0.12.0, but only with the --harmony flag (and I think you also have to specify --use-strict).
Re:Goodbye var: ES6 variable declarations with let and const
by jakerella86 on Tuesday March 17, 2015 @11:59AM
(#9218825)
Also note that even in io.js you need to enable "strict mode;" in all scripts!