Skip to content

Instantly share code, notes, and snippets.

var Bread = function() {
//what is the purpose of these vars?
var name, type;
return console.dir(this);
}
breadOne = new Bread;
breadOne.name = "White";
breadOne.type = "Flour";
//why make vars inside the constructor Bread if I can add more here like this?