var A0003 = object['some key']['some other key'];
with regards to the square brackets??
where A0003 is accessing:
var object = {
'some key': {
'some other key': 'data'
}
}
var A0003 = object['some key']['some other key'];
with regards to the square brackets??
where A0003 is accessing:
var object = {
'some key': {
'some other key': 'data'
}
}
The notation is called bracket notation. It's one of two ways to access properties in JS. The other being dot notation. However in your case, since you have whitespace in your property name only bracket notation will work. See here.
Bracket notation:
object[property_name];
Dot notation:
object.property_name;