This code is confusing to me. It's not the usual JavaScript syntax for a function that I know of. Is this a specific function? Or perhaps it's a callback for when an update event occurs? Apologies for these beginner questions, as I am quite new to JS. I grasp everything else in the code aside from this unfamiliar function syntax foo: function(){};
which appears frequently in an API tutorial I'm currently working through.
updateProgress: function () {
$.post('/callback', {
progress: plnzVideoTracker.progress
});
}