xxxxxxxxxx
25
const UP = 0;
const DOWN = 1;
const _LEFT = 2;
const _RIGHT = 3;
function setup() {
createCanvas(400, 400);
const object1 = {
UP: [],
DOWN: [],
LEFT: [],
RIGHT: []
}
const object2 = {
[UP]: [],
[DOWN]: [],
[_LEFT]: [],
[_RIGHT]: []
}
console.log(object1)
console.log(object2)
}