scope of var in javascript
null != undefined
false
null !!= undefined
null !== undefined
true
null == undefined
true
null === undefined
false
null != undefined
false
null !== undefined
true
!!0
false
!0
true
!1
false
!!1
true
var csss = "444px";
undefined
console.log(css);
console.log(csss);
undefined
console.log(csss.replace("px","rr"));
undefined
csss.replace("px","rr");
"444rr"
csss
"444px"
var evt = "onmousedown";
undefined
evt.length
11
var evt = ["onmousedown"];
undefined
evt.length
1
document["onmousedown"] = function(){alert("a")};
function (){alert("a")}
No comments:
Post a Comment