getbeginnerconst obj = { name: 'Alice', age: 30 }
const name = Reflect.get(obj, 'name')
console.log(name) // β 'Alice'Reflect.get() retrieves the value of a property on an object, equivalent to obj[key].
Reflect.get() can read string values from objects.
Challenge: Verify that Reflect.get({a: 'hello'}, 'a') returns 'hello'.