Skip to content

Instantly share code, notes, and snippets.

@cliffclof
Created July 7, 2015 06:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save cliffclof/9d59b5c7ec3d1084e223 to your computer and use it in GitHub Desktop.
Save cliffclof/9d59b5c7ec3d1084e223 to your computer and use it in GitHub Desktop.
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?
breadOne.whatever = "another option";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment