I have initialized several variables in the global scope in a JavaScript file:
var moveUp, moveDown, moveLeft, moveRight; var mouseDown, touchDown; >
var moveUp, moveDown, moveLeft, moveRight; var mouseDown, touchDown;
Nothing stops you from doing
moveUp = moveDown = moveLeft = moveRight = mouseDown = touchDown = false;
Check this example
var a, b, c; a = b = c = 10; console.log(a + b + c)