re: 3 Ways to Set Default Value in JavaScript VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Just beware of when you have an original value which is falsey, for example, I recently had to get a numeric value from either the body of a reques...
 

Yes! “||” will capture ALL falsy values listed in the article. Definitely something to be really mindful of. Thanks for sharing your example and emphasizing that point! Very important and a very common gotcha that can cause extreme headaches 😵

code of conduct - report abuse