Giter Club home page Giter Club logo

ecmascript6's Introduction

This is just a sort series on ECMAScript6 features

  1. let let is ES6 feature for assign a variable, the difference between var and let is its scope , var scope is to the nearest function block where let is scoped to the nearest enclosing block, which can be smaller than a function block. Both are global if outside any block
  2. Arrow Function Arrow function is ES6 syntax feature for simplify function writing and expressions, they utilize a new token, * => * that look like fat arrow
  3. Template Literal basically Template Literall is using back-tick ` to delineate a template literal. This distingushes from traditional JavaScript strings that are delineated with single or double quotes.
  4. Spread Operator basically like variadic function in Golang (...params)
  5. Class just like regular class but with ES6 syntax it more clearer and simpler compared to traditional javascript class
  6. Inheritance like any other Inheritance, it take the superClass or parentClass and then the childClass have those attribute and method, and have addition attribute and/or method
  7. Generator are functions which can be exited and later re-entered. Their context(variable bindings) will saved across re-entracnes, usually are used in Promises and very powerful tool for asyncronous as they eliminate the problems with callbacks

ecmascript6's People

Contributors

fendijatmiko avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.