sorry if this question seems a little stupid but I have the following code:
var sides = {
'red': [0,0,0,0,0,0,0,0,0],
'ora': [0,0,0,0,2,0,0,3,0],
'yel': [0,0,0,0,0,0,0,0,0],
'gre': [0,0,0,1,0,1,0,0,0],
'blu': [0,0,0,0,0,0,0,0,0],
'whi': [0,0,0,0,0,0,0,0,0],
}
As an example how can I reference array item [0] in sides['red'] ?
I have tried:
sides['red'][0];
sides['red'[0]];
This is probably very wrong, can anyone suggest how I would declare it otherwise?
sides['red'][0];should be fine ...