SlideShare a Scribd company logo
axelerant.com 1
Modern JavaScript Features
Kunal Kursija
axelerant.com 2
About Me...
Drupal Developer @ Axelerant
Twitter: @kunalkursija
Drupal: https://www.drupal.org/u/kunalkursija
LinkedIn: https://in.linkedin.com/in/kunalkursija
axelerant.com 3
JavaScript
3
JavaScript Transpilation
JavaScript
Engine
axelerant.com 4
EcmaScript
4
Scripting
Language
Specification
JavaScript
=
Implementation
Ecma
International
axelerant.com 5
EcmaScript Versions
Version Name Year
ES1 1997
ES2 1998
ES3 1999
ES5 2009
ES6 (ES2015) 2015
ES7 (ES2016) 2016
ES8 (ES2017) 2017
axelerant.com 6
Let’s check some of the
Modern JavaScript features...
axelerant.com 7
let
7
! let allows you to declare variables that are
limited in scope to the block, statement, or
expression on which it is used.
! x = 1 is one variable and x=2 is different
variable.
axelerant.com 8
const
8
! Just like let, const is used to declare block scoped
variables.
! The const values can not change.
! Different error messages for different browsers.
axelerant.com 9
Template Literals
9
! Template literals are strings
that allows embedding of
expressions into strings.
! We use back-tick(`) and not
single quotes(‘) or double
quotes(“).
! Multi-lines work.
axelerant.com 10
Arrow Functions
ES6
ES5
axelerant.com 11
Array Destructuring
Array Destructuring is a JavaScript expression that makes it possible to unpack values from arrays into
distinct variables.
ES5 ES6
axelerant.com 12
Object Destructuring
Object Destructuring is a JavaScript expression that makes it possible to unpack values from objects into
distinct variables.
ES5 ES6
axelerant.com 13
Spread Operator
Spread parameter can be used to expand the the values of an array.
ES5
ES6
axelerant.com 14
Rest Parameter
! The Rest Parameter syntax allows us to represent an indefinite number of arguments as an array.
! Rest parameter must always be at the end.
ES5 ES6
axelerant.com 15
Classes
axelerant.com 16
Inheritance
axelerant.com 17
Modules
! Exporting Modules = Making some functionality available for other modules to use.
! Importing Modules = Reusing some functionality provided by other modules.
export.js import.js
axelerant.com 18
Promises
The Promise is an object, Which represents the eventual completion (or failure) of an asynchronous
operation, and its resulting value.
axelerant.com 19
Question & Answers
axelerant.com 20
Thank You!

More Related Content

PPTX
Modern java script features
PPTX
Javascriptinobject orientedway-090512225827-phpapp02
PPTX
Java script
PPTX
introduction to java scriptsfor sym.pptx
PPTX
Javantura v3 - ES6 – Future Is Now – Nenad Pečanac
PDF
CS8651- Unit 2 - JS.internet programming paper anna university -2017 regulation
PPTX
javascript
PPTX
Modern java script features
Javascriptinobject orientedway-090512225827-phpapp02
Java script
introduction to java scriptsfor sym.pptx
Javantura v3 - ES6 – Future Is Now – Nenad Pečanac
CS8651- Unit 2 - JS.internet programming paper anna university -2017 regulation
javascript

Similar to Modern JavaScript features (20)

PPT
Java Script ppt
PPTX
Web Development Study Jam #2 _ Basic JavaScript.pptx
PPTX
Java Script
PPTX
Javascript Today
PPTX
Java script Basic
PPT
data-types-operators-datatypes-operators.ppt
PDF
Basics of JavaScript
PPTX
Java script
PPTX
js.pptx
PDF
8 introduction to_java_script
PPTX
JavaScript Fundamentals & JQuery
PDF
PPTX
WT Unit-3 PPT.pptx
PDF
Node Boot Camp
PPTX
Introduction to JavaScript
PPTX
ES6 - JavaCro 2016
PPTX
javascript client side scripting la.pptx
PPT
JavaScript ppt for introduction of javascripta
PPTX
Basics of Javascript
PPT
Java Script
Java Script ppt
Web Development Study Jam #2 _ Basic JavaScript.pptx
Java Script
Javascript Today
Java script Basic
data-types-operators-datatypes-operators.ppt
Basics of JavaScript
Java script
js.pptx
8 introduction to_java_script
JavaScript Fundamentals & JQuery
WT Unit-3 PPT.pptx
Node Boot Camp
Introduction to JavaScript
ES6 - JavaCro 2016
javascript client side scripting la.pptx
JavaScript ppt for introduction of javascripta
Basics of Javascript
Java Script
Ad

More from Kunal Kursija (6)

PDF
Spick and span php unit tests using data providers
PDF
Php 8: String Helpers
PDF
Decoupling entity validations from entity forms
PDF
Decoupling entity-validations from entity-forms
PDF
Symfony and Drupal 8
PDF
DrupalCamp Mumbai 2017: Drupal 8 and Commerce 2.x
Spick and span php unit tests using data providers
Php 8: String Helpers
Decoupling entity validations from entity forms
Decoupling entity-validations from entity-forms
Symfony and Drupal 8
DrupalCamp Mumbai 2017: Drupal 8 and Commerce 2.x
Ad

Recently uploaded (20)

PPTX
OOP with Java - Java Introduction (Basics)
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PDF
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PDF
Well-logging-methods_new................
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
Construction Project Organization Group 2.pptx
PPTX
Safety Seminar civil to be ensured for safe working.
PPTX
Geodesy 1.pptx...............................................
PPTX
Current and future trends in Computer Vision.pptx
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPTX
additive manufacturing of ss316l using mig welding
PPTX
Internet of Things (IOT) - A guide to understanding
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PPTX
UNIT 4 Total Quality Management .pptx
PPTX
web development for engineering and engineering
PPT
Introduction, IoT Design Methodology, Case Study on IoT System for Weather Mo...
PDF
composite construction of structures.pdf
OOP with Java - Java Introduction (Basics)
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
Well-logging-methods_new................
UNIT-1 - COAL BASED THERMAL POWER PLANTS
Construction Project Organization Group 2.pptx
Safety Seminar civil to be ensured for safe working.
Geodesy 1.pptx...............................................
Current and future trends in Computer Vision.pptx
CYBER-CRIMES AND SECURITY A guide to understanding
additive manufacturing of ss316l using mig welding
Internet of Things (IOT) - A guide to understanding
Operating System & Kernel Study Guide-1 - converted.pdf
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
UNIT 4 Total Quality Management .pptx
web development for engineering and engineering
Introduction, IoT Design Methodology, Case Study on IoT System for Weather Mo...
composite construction of structures.pdf

Modern JavaScript features