ABOUT US SERVICES WORK TUTORIALS RESOURCES  

Nasty Javascript

Implied Globals

foo="I'm a global foo."
bar="I'm a global bar."

function xyz() {
  var foo="I'm a local foo"
  bar = "I'm a local bar" // the implied global
}
  

Return the Boolean equivalent of a value

>>>"hello"
"hello"
>>>!!"hello"
true
>>>""
""
>>>!!""
false