game_state = function(){
this.players = function() {
this.x = 0;
};
}
game_state.players['test'] = 1;
Why does this fail but
game_state['test'] = 1;
does not?
I'm trying this in node.js in case it wasn't clear. Thanks for any help.