I am learning JavaScript basics. While doing multiple variable declaration in a single statement, getting different results.
var jhon, kate = " kate";
console.log(jhon + kate);
var jhon = "jhon ", kate = " kate";
console.log(jhon + kate);
Question : Why first console.log prints value for kate not for jhon?