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..?
1 Respuesta
+ 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