-
What is
ES6? - ES6, also known as ECMAScript 2015, is the latest version of the ECMAScript standard. ES6 is a significant update to the language, and the first update to the language since ES5 was standardized in 2009. Implementation of these features in major JavaScript engines is underway now. -
What is Transpilation and how does it relate to
ES6? - Transpilation is type of compiler that takes the source code of a program written in one programming language as its input and produces the equivalent source code in another programming language. This is relavant to ES6 because a lot of browsers still don't support all of the new syntax, so tools like Babel transpiles the ES6 code down to ES5 in a build step before the javascipt hits the browser. -
Looking at the ES6 Features link below, discuss one update from
ES5and if it seems useful/superfluous. - One thing I find very useful with ES6 in template strings. Template strings provide syntactic sugar for constructing strings. This is similar to string interpolation through erb in Rails. This allows dynamic string interpolation to be much quicker when contructing javascript strings as opposed to exiting out quotes and concatonating.``` var name = "Bob", time = "today"; "Hello ${name}, how are you ${time}?" ```
-
-
Save adamhundley/1cf5add430f54bebc2dc7a54af9aee26 to your computer and use it in GitHub Desktop.
es6 - 1511 - Adam Hundley
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment