ES6 in WebKit

added by bpwndaddy
10/14/2015 3:49:58 PM

511 Views

ES6 brings a lot of new and interesting language features to JavaScript. ES6 has learned from many of JavaScript’s past mistakes and has crafted new language features that have clearer and easier to understand semantics. let and const are examples of this; they are block scoped declarations and thus not prone to the common errors caused by misunderstanding var scoping semantics. ES6 also includes features that are designed to make common JavaScript idioms feel more natural. As an example, arrow functions make it easy to write small functions that have a lexically bound this; something JavaScript programmers do quite often. class syntax makes it easier to write classical object oriented code that is commonplace in many programs. Destructuring syntax helps remove boiler plate that is found in any sufficiently large JavaScript program.


0 comments