###let
keyword
let
facts
- Mozilla has had let for almost a decade. They completely replace
var
with it.
Explain the differences between var
& let
.
- var is function scope
- let is block scope
- let does not get hoisted
###let
keyword
let
facts
var
with it.Explain the differences between var
& let
.