Skip to content

Instantly share code, notes, and snippets.

@aaronmoodie
Created June 13, 2014 20:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aaronmoodie/9487a343cb87f415aa87 to your computer and use it in GitHub Desktop.
Save aaronmoodie/9487a343cb87f415aa87 to your computer and use it in GitHub Desktop.
> 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