I saw this piece of code in a webpack compiled file
(1,2, function(x) {
console.log(x);
return 4;
})(5);
This seems to execute correctly. I am aware the 5
is a parameter to function(x)
I don't understand what the 1
,2
are? How is this valid?