If you want to loop over an object and want to access its property

PHOTO EMBED

Fri Feb 04 2022 08:49:34 GMT+0000 (Coordinated Universal Time)

Saved by @Abidur_Rahman43 #javascript

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

This syntex is for to access an property of an object