Skip to content

Instantly share code, notes, and snippets.

@JemiloII
Created June 19, 2014 23:31
Show Gist options
  • Save JemiloII/1cf15e3acd29eb2192a4 to your computer and use it in GitHub Desktop.
Save JemiloII/1cf15e3acd29eb2192a4 to your computer and use it in GitHub Desktop.
Showing objects to Cody
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