Exploring ES6
While not generally available in browsers by default, with the use of Babel.js we can start to play with several new Javascript language features, including string interpolation via templates, a new (more familiar) syntax for creating classes, the introduction of let
and const
keywords for declaring variables, and several other features as well.
Several of these features were inspired by what's available in Coffeescript and Typescript, so they may already feel comfortable.
https://github.com/lukehoban/es6features provides a good quick overview of the functionality, and http://es6-features.org/#Constants has lots of examples as well.
Be sure to complete the following Codewars challenge before class!
(If your RailsSchool profile includes your Codewars username, you'll get
a nifty star if you complete the challenge.)
http://www.codewars.com/kata/barking-mad/train/ruby