ECMAScript 2015 and Hoisting Overview

#First I am talking about var, let, and const

  1. var is a function scope, But let and const is a block scope.

JavaScript Function Scope

  • Local scope
  • Global scope

JavaScript Block Scope

#Hoisting

Functions with Default Parameter Values

Functions with Unnamed Parameters

#Spread syntax (…)

#JavaScript Arrow Function

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store