I recently came across this variable initialization in a WebGL tutorial:
var mouse = { x: 0, y: 0 }, INTERSECTED;
I’ve never seen this format. I understand it’s creating an object with an x and y property, but how is INTERSECTED related to the variable/object?
Thanks!
I may get it wrong, but I think It is just like
Defines A with value 3 and B uninitialized.
INTERSECTED is just another var.