hong.name
hong['name']
const hong = { name : 'hongbeen' , age : 25}; funcion printValue(obj, key){ console.log(obj.key); // output: undefined console.log(obj[key]); // output: hongbeen } printValue(hong, 'name');