Skip to content

Instantly share code, notes, and snippets.

@jillmd501
Forked from rrgayhart/es6.markdown
Last active February 3, 2016 16:55
Show Gist options
  • Save jillmd501/cf31957916fb3519d7a3 to your computer and use it in GitHub Desktop.
Save jillmd501/cf31957916fb3519d7a3 to your computer and use it in GitHub Desktop.
ES6 Homework

Throughout the module (and your journey to Google enlightenment while working on IdeaBox2.0) you may notice a few different ways that JavaScript code is being written.

That might have something to do with something called ES6 and ES5

Fork this gist and answer the following questions:

  • What is ES6?
    • ES6 (ECMAScript 6) is the 6th version of Javascript that is updated regularly and also known as 'Harmony.'
  • What is Transpilation and how does it relate to ES6?
    • ES6 code is not necessarily transferrable across all browsers and platform so transpilation is necessary. Transpilation means taking ES6 and translating it into readabel code for other machines. Traceur and Babel are both toos used to translate the client side JS code into compatible languages.
  • Looking at the ES6 Features link below, discuss one update from ES5 and if it seems useful/superfluous,
    • While checking out the template strings section, some of the first words used were 'syntatic sugar' so I was happy. Us rubyist would be more familiar with this being similar to string interpolation.

Ex. // Basic literal string creation In JavaScript '\n' is a line-feed.

Resources:

@rrgayhart
Copy link

👍 Sugar!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment