Skip to content

Instantly share code, notes, and snippets.

@tk120404
Last active December 29, 2015 07:59
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 tk120404/7639922 to your computer and use it in GitHub Desktop.
Save tk120404/7639922 to your computer and use it in GitHub Desktop.
Same property names in javascript
var a = {};
console.log(a);
Object {}
a.name = 'Object';
Object.prototype.name = 'Object';
console.log(a);
Object {name: "Object", name: "Object"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment