Using comma in Javascript variable declaration [duplicate]

It equivalent to

var res = []; 
var matches; 

where matches is undefined

Leave a Comment