I stumbled upon this snippet of code and am curious about what it does. Is it some sort of array?
test = {a: [1,0,0], b:[0,1,0], c:[0,0,1]};
If I wanted to access the array for A specifically, how would I do that?
console.log(bases[a]);
This results in an error saying "Uncaught ReferenceError: a is not defined"
When I use console.log(test);, the output is
Object {a: Array[3], b: Array[3], c: Array[3]}