Loop through an object and access the value of an object.........

PHOTO EMBED

Fri Feb 04 2022 08:38:45 GMT+0000 (Coordinated Universal Time)

Saved by @Abidur_Rahman43 #javascript

let myFriend =  {
  
  name: 'Junyet ',
  age:25,
  
};
for (const valuesOfObject of Object.values( myFriend )){
  console.log(valuesOfObject);
}
content_copyCOPY

If i want to access value of an object this is the right syntex..........