I've been looking at the jquery source code. It first declares a bunch of variables like this:
var deletedIds = [];
var slice = deletedIds.slice;
var concat = deletedIds.concat;
then it start declaring a comma separated list of functions and variables:
var
version = "1.11.2",
// Define a local copy of jQuery
jQuery = function( selector, context ) {
// The jQuery object is actually just the init constructor 'enhanced'
// Need init if jQuery is called (just allow error to be thrown if not included)
return new jQuery.fn.init( selector, context );
},
My question is why doesn't it declare all of them as a comma separated list? Or why use the comma separated list method, why not just declare all the functions and variable like the first 3?