i've got a function that looks like this, but I really only have a vague understanding what it's doing. I think that it is JSON, but can somebody either explain to me what is happening in javascript formatted like this or point me towards a useful tutorial that I can read - i've read some similar things on the web, but nothing that seems to address this specific syntax:
Uncommitted, except to looking good. Constantly judging.
Always on the verge of being upset.
Code:
name: function(doSomething, e) {
if (condition) {
doStuff();
}
},
What does the colon after name denote, and why is there a comma at the end?
Thanks for considering my question.
Uncommitted, except to looking good. Constantly judging.
Always on the verge of being upset.