accessing object keys values code example
Example 1: javascript object get value by key
const person = {
name: 'Bob',
age: 47
}
Object.keys(person).forEach((key) => {
console.log(person[key]); // 'Bob', 47
});
Example 2: javascript get values from object
Object.values(data)