var person ={"first_name":"Billy","last_name":"Riley"}; var property_name="first_name"; alert(person[property_name]); //Dynamically access object property with bracket notation
// Also useful for dynamic strings, e.g. `thing-${variable}` myObject['thing'] = true;