ES6 features
ES6
also called ES2015
alias EcmaScript2015
is the latest JavaScript language released in June 2016.
ES6 is a major release with list of following features release
Feature | Description | Syntax |
---|---|---|
constants | Constants are not reassignable once assigned a value | const RATE=10 |
Array Functions | New array constructor and functions introduced in ES6 | |
Default parameters to functions | Default parameters to functions | |
Destructuring Assignments | Destructuring assignments of an object Arrays examples | |
ES6 Classes and Constructors | Class and Constructors examples | |
Spread Operator | Spread Operator example | |
New for loops | ES6 For loops | |
ES6 variable and functional Scopes | Javascript global, functional, local scopes of variables and functions | |
Import and Export | Reuse functions and classes using import and export | |
Variable declaration let and var | Different ways of declare an variable in javascript | |
Multi Line String examples | String multi-line examples in javascript | |
Object Literal Syntax example | Object Literal Declaration and assignment syntax examples | |
Javascript Promise | Javascript promise and async tutorials |
Are all browsers supported by the ES6 version?
Yes, all the latest browsers support the ES06 version, including Chrome, Internet Explorer, Safari, and Firefox.
Does Chrome use ES6?
Chrome began supporting ES6 in version 52, including features such as exponentiation and array includes. The latest version of Chrome supports all features of ES7.
What is ES6 JavaScript?
ECMAScript 2015, also known as ES6, is the latest feature addition to JavaScript, introducing new features. It includes only minor releases and is implemented in V8 and TypeScript.