3 ms·
I felt dumb not recognizing const, let, or the fat arrow as javascript constructs... Are they Firefox only? Or is Firefox the only one shipping the new standar
by patmcguire 12y ago
I felt dumb not recognizing const, let, or the fat arrow as javascript constructs...
Are they Firefox only? Or is Firefox the only one shipping the new standard? All my Googling only gives me Mozilla results; I do JS full time and haven't heard of these.
- __derek__ 12y agoThose are new in ECMAScript 2015 (f.k.a. ES6). Check out Kangax's compat table[1] for support. [1] http://kangax.github.io/compat-table/es6/ http://kangax.github.io/compat-table/es6/
- inglor 12y agoAs the link in the article states you can use all of these with https://github.com/babel/babel https://github.com/babel/babel today, here is a quick and recent overview of new features http://www.2ality.com/2015/02/using-es6-today-minsk.html http://www.2ality.com/2015/02/using-es6-today-minsk.html
- jekrb 12y agoA nice set of slides explaining es6 syntax. https://speakerdeck.com/rauschma/using-ecmascript-6-today https://speakerdeck.com/rauschma/using-ecmascript-6-today