cs 498rk spring 2019 - github pages › sp19 › slides › es6_06.pdf · javascript implements...

Post on 30-May-2020

12 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

SPRING 2019CS 498RK

ES6

new features for JavaScript

WHAT IS ES6?

ES (ECMAScript) is a scripting language standard.

JavaScript implements ECMAScript.

ES6 means the 6th Edition of ECMAScript.

Timeline

2019

1998: ES2 2000: ES4 (Abandoned)

1997: ES1 1999: ES3

Started in 1997, yearly updates up to 2000

Timeline

2019

1998: ES2 2000: ES4 (Abandoned)

1997: ES1 1999: ES3 2009: ES5

10 years later, ES5. Not much new stuff.

Timeline

2019

1998: ES2 2000: ES4 (Abandoned)

2015: ES6

1997: ES1 1999: ES3 2009: ES5

6 years later, ES6! Plethora of new features!

Timeline

2019

1998: ES2 2000: ES4 (Abandoned)

2015: ES6 2017: ES8

1997: ES1 1999: ES3 2009: ES5 2016: ES7 2018: ES9

Yearly updates since ES6.

New, Exciting Features Every Year!

ES6 FEATURESLet & Const

Arrow Functions

Default Parameters

Template Literals

Destructuring

Rest & Spread

New Array Methods

Classes

Modules

and more!

LET

before after

CONST

before after

ARROW FUNCTIONS

before

after

ARROW FUNCTIONSbefore

after

DEFAULT PARAMETERS

before after

TEMPLATE LITERALS

before

after

TEMPLATE LITERALS

before after

DESTRUCTURING

REST

accessing the "rest" of the arguments

SPREAD

before after

SPREAD

copying an array

NEW ARRAY METHODS

and more…

CLASSES

before after

CLASSES

before

after

MODULESbefore after

MODULES

before after

RESOURCES

http://exploringjs.com/es6/

https://github.com/lukehoban/es6features

http://es6-features.org

top related