JavaScript przypisz wiele zmiennych do tej samej wartości ES6
const [
moveUp,
moveDown,
moveLeft,
moveRight,
mouseDown,
touchDown
] = Array(6).fill(false);
console.log(
moveUp,
moveDown,
moveLeft,
moveRight,
mouseDown,
touchDown
); // will assign all the variables from lines 11-16 to false
Worried Wolverine