Comma Operator

The comma operator simply returns the value to the right of it. Its most common use is within for loops.

When used directly in console.log(), all the expressions do get printed out in the Console (F12).
RESETRUNFULL
<!DOCTYPE html><html><body><script>

<!DOCTYPE html><html><body><script>
   console.log(1,2,3); // 1,2,3
   console.log((1+1,2+2,3+3));  // 6
   var v = 3; console.log((v-=3,v)); // 0
   for (i=0,j=0;i+j<10;i++,j++) console.log(i+","+j);      // 0,0      // 1,1      // 2,2      // 3,3      // 4,4
  </script></body></html>

</script></body><html>