Created
June 13, 2014 20:52
-
-
Save aaronmoodie/9487a343cb87f415aa87 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
> function Element() {} | |
undefined | |
> Element.prototype.render = function() {}; | |
[Function] | |
> var e = new Element(); | |
undefined | |
> e.render(); | |
undefined | |
> e.toString(); | |
'[object Object]' | |
> Element.prototype = {}; | |
{} | |
> a = new Element(); | |
{} | |
> a.toString(); | |
'[object Object]' | |
> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment