Quantcast
Channel: Projectmw Blog
Viewing all articles
Browse latest Browse all 75

Difference between var, let and const

$
0
0
var declarations are globally scoped or function scoped while let and const are block scoped. This means you can declare the a let or const with the same name inside an if statement and it will be self contained. The console would log “aa bb” followed by “a b”. Let and const can’t be redeclared in […]

Viewing all articles
Browse latest Browse all 75

Trending Articles