I am kind of oldskool and just getting back to learning about all the new stuff added to JS in the last 10 years or so (or just stuff I did now know about back then) and would like to know whats the difference between
function xyz() // I used to always use it like this
{}
and this that I keep seeing:
xyz:function()
{}
It also has a funny little comma with two or more functions like so:
xyz1:function()
{},
xyz2:function()
{}