Created
June 19, 2014 23:31
-
-
Save JemiloII/1cf15e3acd29eb2192a4 to your computer and use it in GitHub Desktop.
Showing objects to Cody
This file contains 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 objectName = {}; // This is just declaring a object if you nothing to put in it. | |
// some frameworks do stuff like this | |
objectName = { | |
name: "Brian", | |
dosomething: function(res){ | |
console.log('something'); | |
} | |
} | |
// standard | |
objectName = { | |
"name": "Brian", | |
"dosomething": function(res){ | |
console.log('something'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment