JavaScript is Strange!
console.log(1 == true); //true
console.log(1 === true); //false
console.log("0" == false); //true
console.log("abc" == "a" + "b" +"c"); //true
console.log(null == undefined); //true
console.log(30 -"7"); //23
console.log("30" + 7); //307
No comments:
Post a Comment