I saw the following snippet in a jquery code, but I don't understand why it uses a comma right before 'contents' instead of a period.
var that = $(this),
contents = that.serialize();
Does anyone have an idea why a comma is being used?
I am missing the words to search properly I think.
same as :
var that = $(this);
var contents = that.serialize();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With