This was a question I was asked and was completely stumped.
var a = (1, 2, 3);
console.log(a);
I found out that a = 3 and was wondering why the value is equaled to the last number in the parenthesis. It works the same if there were strings. This confused me since I never seen the value of a variable cited in parenthesis, when would someone use this?