Created
July 7, 2015 06:58
-
-
Save cliffclof/9d59b5c7ec3d1084e223 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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