undefined == false / output is false | SoloLearn: Learn to code for FREE!

0

undefined == false / output is false

in JavaScript {} // output is undefined undefined == false // output is false undefined === false //output is false Why false came ?? Do u know how? Any js experts here to solve this..?

11/10/2019 8:05:57 AM

subramaniam.k

1 Answer

New Answer

+4

no type coercion for undefined, so explicitly convert its type. console.log(typeof undefined ); console.log(Boolean( undefined )); console.log(Boolean( undefined ) === false); https://code.sololearn.com/Wjf7hldPVio6/?ref=app