Skip to content

Instantly share code, notes, and snippets.

@tashian
Created May 23, 2012 23:57
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 tashian/2778534 to your computer and use it in GitHub Desktop.
Save tashian/2778534 to your computer and use it in GitHub Desktop.
> F = function() {}
function () {}
> F.prototype = new String("hello")
"hello"
> f = new F()
function () {}
> f.length
0
(why isn't this 5?)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment