© Deepak Grover and Hanu Kunduru 2017

Deepak Grover and Hanu Prateek Kunduru, ES6 for Humans, https://doi.org/10.1007/978-1-4842-2623-0_2

2. New Syntax in ES6

Deepak Grover and Hanu Prateek Kunduru2

(1)Delhi, India

(2)Seattle, Washington, USA

The new features introduced in ECMAScript 6 represent the foundation upon which JavaScript applications will be built in the future. In this chapter we will take a look at the changes and new additions to the ES6 syntax that help in fixing a lot of things that went wrong with the previous versions of JavaScript. We will discuss in detail about new ways of declaring variables and defining scope. We will also introduce new concepts like arrow functions, default function parameters, spread and rest operators, ...

Get ES6 for Humans: The Latest Standard of JavaScript: ES2015 and Beyond now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.