function Shoe(size, gender) {
this.size = size;
this.gender = gender;
}
Shoe.prototype = {
constructor: Shoe,//note: if you're directly assigning the prototype to an object literal, you should assign the constructor property to the constructor
putOn: function() { alert("Shoes on");}
};
var magicShoe = new Shoe(6, "woman");
console.log(magicShoe.putOn());