4 ms·
That's ES6 JavaScript (running on Node 0.11.15). We've already migrated most of our production code to this and we're loving it! If you like that kind of contr
by iamartnez 12y ago
That's ES6 JavaScript (running on Node 0.11.15). We've already migrated most of our production code to this and we're loving it!
If you like that kind of control flow, check out the library we wrote to do it:
https://github.com/storehouse/engen https://github.com/storehouse/engen
- jsprogrammer 12y agoWhy not use let instead of var?
- iamartnez 12y agoOnly habit. We're so used to var. But yea, need to transition to let for most things.
- yoshuaw 12y agoI think migrating to const makes more sense. In practice only a few things require to be mutated.
- jsprogrammer 12y agoDidn't realize const was in. Will definitely be using it.