If you have multiple vars and declare at the same time, you use comma between them based on my research. For example: var num=1, ctr = 0 ;  it's like what we used in Java