Skip to content

Instantly share code, notes, and snippets.

View abraxasrex's full-sized avatar

Jonathan Reasor abraxasrex

View GitHub Profile
@adnasa
adnasa / code.js
Created August 3, 2015 10:32
js prototypal inheritance mindfuck
function Person(name) {
this.name = name;
this.someArray = [];
}
Person.prototype.someArray2 = [];
var adnan = new Person('adnan');
adnan.someArray.push('something1');
adnan.someArray2.push('something2');