You are viewing a single comment's thread from:

RE: JavaScript - var, let, const

in #programming7 years ago (edited)

Great post. Mutability in JS makes things very complicated (I recently had a hair pulling bug that modified properties on an unintended object). You know you can also create a constant object with Object.seal(obj) ? Once you pass your object to the seal method, you won't no longer be able to modify its properties.

I have a couple of javascript posts on promises as well...check them out and follow me @codero

Sort:  

Nice, promises can be pretty daunting for new developers. Good to see you're writing some explanations for those that need it. Followed :)

Thanks for the great tip, I will follow you, Thanks

Coin Marketplace

STEEM 0.26
TRX 0.20
JST 0.038
BTC 97427.07
ETH 3595.97
USDT 1.00
SBD 3.91