What happens in memory when you add to an object's prototype in the constructor? Does it get it recreated every time you make a new object?
For example:
function Foo(){
Foo.prototype.bar = function() {
console.log("bar func called");
}
}
var x = new Foo();
x.bar();
var y = new Foo();
y.bar();