Sunday, September 8, 2013

ECMAScript 6 - What's new in JavaScript - Part 1

Introduction



On this series I'm planning write posts about new features in incoming ECMAScript version 6. Here is definition from Wikipedia:

ECMAScript is the scripting language standardized by Ecma International in the ECMA-262 specification and ISO/IEC 16262. The language is widely used for client-side scripting on the web, in the form of several well-known implementations such as JavaScript, JScript and ActionScript.


At the moment all of popular browsers like Chrome, Firefox, Internet Explorer and Opera have included the latest stable edition of ECMAScript version 5.1. Also for the moment only(?) Firefox have implemented most features of new ECMAScript and I will try show you examples using this browser [source].

Here is a list with news from ES6 which I'm going to describe one by one in next parts:

  • const
  • let
  • Destructuring assignment
  • for...of statement
  • Iterators and generators
  • Default parameters
  • Spread operator of Array
  • Arrow functions
  • Array comprehensions
Actual versions of draft you can find here: http://wiki.ecmascript.org/doku.php?id=harmony:specification_drafts. Official release date is not known .I can only find some information that it can be released in December 2013 or 1st half of 2014. 

No comments :

Post a Comment