class sell {
#table = [];
push() {
this.#table[this.#table.length] = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,];
}
write(A,B) {
this.#table[A[0]][A[1]]=B;
}
get(A) {
return this.#table[A[0]][A[1]]
}
}
const t = new sell();
t.push();
t.write([0, 0], (t.get([0, 0])+1));
console.log(t.get([0, 0]));
To embed this project on your website, copy the following code and paste it into your website's HTML: