bugl
bugl
HomeLearnPatternsSearch
HomeLearnPatternsSearch

Loading lesson path

Learn/JavaScript/Debugging, Projects, and Reference
JavaScript•Debugging, Projects, and Reference

Javascript 2015 (ES6)

ECMAScript 2015

The second major revision to JavaScript. ECMAScript 2015 is also known as ES6. New Features in JavaScript 2015 (ES6)

Feature

Description

The let keyword

Declares a variable with block scope

The const keyword

Declare a contant immutable variable

Arrow Functions

Allows short syntax for writing function expressions

{a,b} = Operator
Assigns object properties to variables (object destructuring)
[a,b] = Operator
Assigns array values to variables (array destructuring)... Operator

Spreads an array or iterable into individual elements

For/of

Loops through the values of iterable objects

Map Objects

Formula

Object with key - value pairs, similar but different from objects

Set Objects

Array that stores unique values

Classes

Templates for JavaScript Objects

Promises

Object representing the completion of an asynchronous operation

Symbol

A unique "hidden" identifier that no code can access

Default Parameters

Allows default values for function parameters

Rest Parameters

Allows functions to treat an indefinite number of arguments String.includes() Returns true if a string contains a specified value String.startsWith() Returns true if a string begins with a specified value String.endsWith() Returns true if a string ends with a specified value

Array entries()

Formula

Returns an iterator key/value pairs from an array

Array.from()

Creates an array from a string

Array keys()

Returns an iterator with the keys of an array

Previous

ECMAScript 2016

Next

JavaScript 2009 (ES5)