May I add something, if you don't mind π
something ? /* if truthy */ : /* if falsy */
Because doing something like this something will capture all truthy/falsy value and not just true/false. I've made that mistake in past, so I just want to include this friendly reminder to be mindful of π
something
true
false
Oh thanks π
I just found out that truth / falsy is different from true / false. Very cool, Javascript
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
May I add something, if you don't mind π
Because doing something like this
something
will capture all truthy/falsy value and not justtrue
/false
. I've made that mistake in past, so I just want to include this friendly reminder to be mindful of πOh thanks π
I just found out that truth / falsy is different from true / false. Very cool, Javascript
Kenal JavaScript: Truthy dan Falsy - Jundi Alwan - Medium
Jundi Alwan γ» γ» 5 min read
Medium