Skip to content

Instantly share code, notes, and snippets.

@kjs222
Forked from anonymous/es6-research.markdown
Last active October 8, 2016 16:49
Show Gist options
  • Save kjs222/b4560325d3c2d52caf9022973db1d6c1 to your computer and use it in GitHub Desktop.
Save kjs222/b4560325d3c2d52caf9022973db1d6c1 to your computer and use it in GitHub Desktop.
Length Points Week
15 minutes 5 Week 1

ES6 Research

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

Deliverable

  • Fork This Gist
  • Respond in your forked gist with answers to the following questions
    • What is ES6?

      • the latest release of Javascript with new syntax, functionality, etc.
    • What is Transpilation and how does it relate to ES6?

      • transpilation is a source to source compilation process that takes source code in one language and outputs it as source code from another language. Because browser and server support for ES6 is relatively low at this point, you need to transpile any javascript source code that makes use of ES6 features to ensure compatibility. Babel is a common tool for this purpose. And now I understand all of the configuration that I did to use React... and what the webpack output was all about...
    • Looking at the ES6 Features link below, discuss one update from ES5 and if it seems useful/superfluous

      • class capabilities were the most interesting to me, because (despite using them extensively in React), I hadn't realized that classes were a thing in JS (vs protoypes). I was also intersted in how to use super to access methods and properties on the parent class.

      • the arrow sytax was not new to me, but understanding how it handles this differently was definitely new to me. Knowing that they share the same this as the surrounding code is helpful and also forced me to do some more exploration of binding, call and apply more generally.

      • my flashcards - not all es6 related, but inspired by trying to understand some of the es6 changes.

Resources

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