How to read this line?

var cal = $(this).parent().parent(), col; 

What is this comma?

    2 answers 2

    In this case, the declaration and initialization of variables that go list. In fact, this is analogous to the following code.

     var cal = $(this).parent().parent(); var col; 
    • Variable names are, of course, excellent. Just a self-documenting code. - Nick Volynkin ♦

    Um .. Enumeration when declaring variables.

     var a, b; var a = 32, b; var a = $(this), b; var a = $(this).parent(), b;