SlideShare a Scribd company logo
What’s New in
ECMAScript 2015
Sasha dos Santos
@sashageekette
Orlando Code Camp 2016
Class
https://jsfiddle.net/87mp3gk5/2/
Inheritance
https://jsfiddle.net/t56f2afg/3/
Static Methods
https://jsfiddle.net/boLg6oc1/2/
Default Parameters
https://jsfiddle.net/67r879tn/2/
Arrow Functions - ex. 1
https://jsfiddle.net/powsc8u7/5/
Arrow Functions - ex. 2
https://jsfiddle.net/7091rwru/7/
Template Literals
https://jsfiddle.net/75uktrxn/2/
Spread Operator
https://jsfiddle.net/xLbhq1xe/21/
Object Literals
https://jsfiddle.net/wxhuL1gx/7/
Destructuring Assignment - ex. 1
https://jsfiddle.net/9g06bgdx/2/
Destructuring Assignment - ex. 2
https://jsfiddle.net/9g06bgdx/25/
let
https://jsfiddle.net/cys2eg3s/1/
const
https://jsfiddle.net/96svxzpa/4/
Object.assign
https://jsfiddle.net/b4zmquxt/6/
Iterators & Generators
https://jsfiddle.net/e7ea9vj3/24/
for…of
https://jsfiddle.net/v4q42oca/21/
Set
https://jsfiddle.net/cgfvyk44/22/
WeakMap
https://jsfiddle.net/oqLuaj7q/22/
Symbols
https://jsfiddle.net/995Lk2qp/5/
Modules
Backwards Compatibility
• No browser implements all of these new features
• To check compatibility:
• CanIUse.com
• http://kangax.github.io/compat-table/es6/
• MDN (mozilla developer network)
caniuse.com
kangax.github.io/compat-table/es6/
per.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_O
JavaScript Transpilers
• Compiler that translates between languages
• ES6 -> ES5
• Write code now in ES6, but browser executes
ES5 equivalent
• Babel https://babeljs.io/
• Traceur https://github.com/google/traceur-
compiler
What's New in ECMAScript 2015
Babel
• Not recommended that you try to transpile ‘on
the fly’ at the client, though its possible
(https://cdnjs.com/libraries/babel-core)
• Option 1: Manually transpile code before publish
• Better Option 2: Integrate with you existing build
tool such as Browserify, Webpack, Gulp,
MSBuild, etc (babeljs.io/docs/setup)
Module Bundling
• Webpack and Browserify are popular JS
bundling tools, but they support CommonJS
modules and not the new ES6 imports
• Combine with Babel which will convert your
import statements into require statements
• ex. Browserify + Babelify = use imports and
bundle
Polyfills
• Code that provides ‘native’ functionality that isn’t
actually supported by the browser.
• You code using ES6 and if not natively
supported, the polyfill code is executed.
• Transpilers can rewrite code to ES5, but may still
require polyfills for calls that have no ES5
equivalent
Polyfills (continued)
• To look for specific
polyfills to copy
into your project,
go to MDN and
search for feature
mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objec
Polyfills (continued)
• There are plenty of libraries (modules) that
provide many polyfills and you can import only
the ones you need (consult the google)
• ex. https://github.com/es-shims

More Related Content

PPTX
7++ Reasons to Move Your C++ Code to Visual Studio 2017
PDF
RESUMEELLIOTBONIOR2016
PDF
Toll Fraud Mitigation by SIP Trunk Plus
PDF
Certificate of Performance_6
PPTX
Final pizza hut 2010 rohit
DOC
Ehab shalabyCV general sales
PPTX
Call center outsourcing
DOCX
Genome <imran>
7++ Reasons to Move Your C++ Code to Visual Studio 2017
RESUMEELLIOTBONIOR2016
Toll Fraud Mitigation by SIP Trunk Plus
Certificate of Performance_6
Final pizza hut 2010 rohit
Ehab shalabyCV general sales
Call center outsourcing
Genome <imran>

Viewers also liked (10)

POTX
Rc ppt 3 2
PPTX
Rural 2015 3er trimestre 1
PPTX
ALL SURFACE EMPTY BOTTLE INSPECTION TRAINING
PPT
Blogging The Writing Process With Teens
DOCX
Bkb paripurna laelo
PPT
EMPTY BOTTLE INSPECTION MACHINE
PPTX
Misc. Coursework Presentations
PPT
01 konseling & ptm ctu 11
PPT
Interesting Quiz
PDF
Draft profil kesiapsiagaan menghadapi tsunami kab tulungagung
Rc ppt 3 2
Rural 2015 3er trimestre 1
ALL SURFACE EMPTY BOTTLE INSPECTION TRAINING
Blogging The Writing Process With Teens
Bkb paripurna laelo
EMPTY BOTTLE INSPECTION MACHINE
Misc. Coursework Presentations
01 konseling & ptm ctu 11
Interesting Quiz
Draft profil kesiapsiagaan menghadapi tsunami kab tulungagung
Ad

Similar to What's New in ECMAScript 2015 (20)

PDF
GREAT STEP 2. TDD & MockMVC
PPTX
Date pickers
PDF
Rupicon 2014 caching
PDF
Rupicon 2014 caching
PDF
DevoxxUK-2023 - Java Divergence.pdf
PDF
DevoxxUK-2023 - Java Divergence.pdf
PDF
PostgreSQL Monitoring using modern software stacks
PDF
Piwik elasticsearch kibana at OSC Tokyo 2016 Spring
PDF
Eta lang Beauty And The Beast
PDF
Grooscript gr8conf 2015
PDF
Edge trends mizuno-template
PDF
"今" 使えるJavaScriptのトレンド
PDF
HTML5とはなにか?マイクロソフトはHTML5をどう考えているのか? v2
PDF
Reactive programming with Rxjava
PDF
Magento 2 Design Patterns
PPTX
IAC_PuppetCampLondon_2016
PDF
4th sem industrial training
PDF
Node js javascript no lado do servidor
PDF
Create rich web stories with Drupal 8 and paragraphs
TXT
Elinvoimaa hunajasta-yleist-hunajatietoa-ja-kyttvinkkej
GREAT STEP 2. TDD & MockMVC
Date pickers
Rupicon 2014 caching
Rupicon 2014 caching
DevoxxUK-2023 - Java Divergence.pdf
DevoxxUK-2023 - Java Divergence.pdf
PostgreSQL Monitoring using modern software stacks
Piwik elasticsearch kibana at OSC Tokyo 2016 Spring
Eta lang Beauty And The Beast
Grooscript gr8conf 2015
Edge trends mizuno-template
"今" 使えるJavaScriptのトレンド
HTML5とはなにか?マイクロソフトはHTML5をどう考えているのか? v2
Reactive programming with Rxjava
Magento 2 Design Patterns
IAC_PuppetCampLondon_2016
4th sem industrial training
Node js javascript no lado do servidor
Create rich web stories with Drupal 8 and paragraphs
Elinvoimaa hunajasta-yleist-hunajatietoa-ja-kyttvinkkej
Ad

Recently uploaded (20)

PPTX
TLE Review Electricity (Electricity).pptx
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Mushroom cultivation and it's methods.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Getting Started with Data Integration: FME Form 101
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
A novel scalable deep ensemble learning framework for big data classification...
PDF
project resource management chapter-09.pdf
PPTX
OMC Textile Division Presentation 2021.pptx
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
A comparative study of natural language inference in Swahili using monolingua...
PPTX
1. Introduction to Computer Programming.pptx
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
DP Operators-handbook-extract for the Mautical Institute
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
PDF
Hindi spoken digit analysis for native and non-native speakers
PPTX
cloud_computing_Infrastucture_as_cloud_p
PDF
Zenith AI: Advanced Artificial Intelligence
TLE Review Electricity (Electricity).pptx
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Digital-Transformation-Roadmap-for-Companies.pptx
Mushroom cultivation and it's methods.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Getting Started with Data Integration: FME Form 101
Programs and apps: productivity, graphics, security and other tools
A novel scalable deep ensemble learning framework for big data classification...
project resource management chapter-09.pdf
OMC Textile Division Presentation 2021.pptx
SOPHOS-XG Firewall Administrator PPT.pptx
Encapsulation_ Review paper, used for researhc scholars
A comparative study of natural language inference in Swahili using monolingua...
1. Introduction to Computer Programming.pptx
NewMind AI Weekly Chronicles - August'25-Week II
DP Operators-handbook-extract for the Mautical Institute
Univ-Connecticut-ChatGPT-Presentaion.pdf
Hindi spoken digit analysis for native and non-native speakers
cloud_computing_Infrastucture_as_cloud_p
Zenith AI: Advanced Artificial Intelligence

What's New in ECMAScript 2015