loading...

Convert to Boolean

318097 profile image Mehul Lakhanpal ・1 min read

Alt Text

Thanks for reading 💙

Follow @codedrops.tech for daily posts.

InstagramFacebook

Micro Learning ● Web Development ● Javascript ● MERN stack

www.codedrops.tech

Discussion

pic
Editor guide
Collapse
jonrandy profile image
Jon Randy

Solution 3 - why bother? JS has the concept of truthy and falsy. Understand it, and take advantage of it

Collapse
llagerlof profile image
Lawrence Lagerlof

Please, can you provide some use case where this will be useful?