Skip to main content

Home/ javascript/ Group items tagged obejct

Rss Feed Group items tagged

Javier Neira

The Dark side of JavaScript - Part 1 @ Milkshake Systems - 3 views

  • var foo = "foo"; // same as window.foo function doSomething() { bar = "bar"; // same as window.bar }
Javier Neira

The Dark side of JavaScript - Part 2 @ Milkshake Systems - 1 views

  • In JavaScript, where functions are objects and aren’t declared as part of anything, the object referenced by this is called the function context and is determined by how the function is invoked not by how its declared.
  • This means that the same function can have different contexts depending on which object calls it.
1 - 2 of 2
Showing 20 items per page