javascript--js

 

 

1 implicit conversion

 

1.1 == different types are then compared to Digital

// not translated into strings 
the console.log ( "10" > 2);


console.log("0" == false);
console.log("1" == true);

// number equal to 
the console.log (0 == '0' );
console.log(0 == false);

Created: 2019-12-10 16:51 Tuesday

Validate

Guess you like

Origin www.cnblogs.com/heidekeyi/p/12017666.html