Last active
February 16, 2016 08:33
-
-
Save snowmantw/926968d84e4336c22859 to your computer and use it in GitHub Desktop.
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
let Foo = function() { | |
this._name = 'Foo'; | |
}; | |
Foo.prototype.bark = function() { | |
console.log(this._name, ' barks'); | |
}; | |
let foo = new Foo(); | |
let fooBark = foo.bark; | |
fooBark(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment