RE: Javascript's const keyword

You are viewing a single comment's thread from:

Javascript's const keyword

in programming •  7 years ago 

Also worth noting, const declarations are block scoped (not function scoped like var), and cannot be accessed before declaration due to temporal dead zone (unlike var). This is a nice post describing the behaviour of var vs let vs const - https://dmitripavlutin.com/javascript-hoisting-in-details/

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Thanks Petar.