Using JavaScript from the Future in Your Rails App Today
summary
ES2015 (ECMAScript 6) introduces concrete fixes and sugar: let and const stop hoisting and accidental globals (demo with five buttons), template strings replace fragile concatenation, arrow functions lexically bind this so callbacks behave, and classes/getters/splat/destructuring simplify objects. Rails integration uses Babel transpilation or sprockets‑es6 so modern syntax runs in current apps; browsers update every six weeks and transpilation lets teams ship ES2015 today with no mystery.
AI-written summary · about
chapters (9)
- 0:00Start
- 3:41Towards a better language on the client.
- 5:55Firming up the foundation of the language.
- 9:09Turing students ask: "Hey Steve, what's your least favorite thing about writing JavaScript?"
- 10:14Template strings to the rescue
- 12:26Let's play a game.
- 22:01What about inheritance?
- 26:47Default Arguments
- 27:31Transpilation.








