0% found this document useful (0 votes)
28 views4 pages

Presentation BY RAJ PRUDHVI: Contact Us: Email: Phone: +44 7836 212635

The document discusses the let and const keywords introduced in ES2015. It notes that let declarations are block scoped and not hoisted, unlike var which is function scoped and hoisted. Const declarations similarly cannot be reassigned and are block scoped. Both let and const help programmers more easily understand where variables are accessible by making their scope more limited than var. The document concludes by thanking the audience and providing contact information.

Uploaded by

Andres Calvo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views4 pages

Presentation BY RAJ PRUDHVI: Contact Us: Email: Phone: +44 7836 212635

The document discusses the let and const keywords introduced in ES2015. It notes that let declarations are block scoped and not hoisted, unlike var which is function scoped and hoisted. Const declarations similarly cannot be reassigned and are block scoped. Both let and const help programmers more easily understand where variables are accessible by making their scope more limited than var. The document concludes by thanking the audience and providing contact information.

Uploaded by

Andres Calvo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Presentation BY RAJ PRUDHVI

Contact us:https://training.uplatz.com
Email: [email protected]
Phone: +44 7836 212635
let
➢ let is introduced in ES2015 (aka ES6) , the variable type let shares a lot of similarities with var
➢ var declarations are functional scoped
➢ let declarations are block scoped
➢ var declarations are hoisted
➢ let declarations are not hoisted

In short, let helps us by making it easier to see where variables live in our code
const
➢ let is introduced in ES2015 (aka ES6)
➢ const value cannot be changed
➢ const declarations are block scoped
➢ Const declarations are not hoisted
➢ Like var and let , variables declared with const can also be chained with commas separating each
variable
Thank You
Contact us:https://training.uplatz.com
Email: [email protected]
Phone: +44 7836 212635

You might also like