Tetapkan nilai tunggal ke beberapa variabel dalam reaksi JS atau javacript

const [
  moveUp,
  moveDown,
  moveLeft,
  moveRight,
  mouseDown,
  touchDown
] = Array(6).fill(false);

console.log(
  moveUp,
  moveDown,
  moveLeft,
  moveRight,
  mouseDown,
  touchDown
);
Brave Butterfly