Presentation BY RAJ PRUDHVI: Contact Us: Email: Phone: +44 7836 212635
Presentation BY RAJ PRUDHVI: Contact Us: Email: Phone: +44 7836 212635
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