DEV Community

Discussion on: All Glory to the Principle of Least Astonishment! ❤

Collapse
 
mareskav profile image
Václav Mareška

About JavaScript, to be honest... I have never fully remembered JavaScript's true / false or truphy / falsy rules well. I have my favourite "cheat sheets" where I can have a look, but still it's real hell! Typescript brought a bit more strict checking.

What I really love is Typescript's "optional chaining" instead of JavaScript talkative conditionals. And I guess I'm not the only one because JavaScript new version is going to use it too 😊 (for example: javascript.info/optional-chaining)