Created
August 10, 2013 03:03
-
-
Save shanefulmer/6198848 to your computer and use it in GitHub Desktop.
Secrets of the JavaScript Ninja pg 53-54
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Ninja() { | |
this.skulk = function () { return this; }; | |
} | |
var whatever = Ninja(); | |
console.log(whatever); | |
"But the effect would be for the skulk property to be created on window, and for window to be returned and stored in whatever" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment