I\'ve got a pretty simple question (and tentative answers), I just want to see if maybe there is a better answer out there.
How can you access an object member in ja
var message = messages[state];
Every object in JavaScript is not only an object in the more usual sense, but it is also a dictionary populated by its members.