RE: RE: Javascript's const keyword
You are viewing a single comment's thread from:

RE: Javascript's const keyword

Words
37
Reading
1 min
Listen
Play
9y

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/

@petarjs: Also worth noting, | Ecency