You are viewing a single comment's thread from:

RE: Javascript's const keyword

in #programming7 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/

Coin Marketplace

STEEM 0.16
TRX 0.13
JST 0.027
BTC 57567.29
ETH 2568.29
USDT 1.00
SBD 2.50