This code will give you access to access both key and values of an object using For Of Loop

PHOTO EMBED

Fri Feb 04 2022 10:07:50 GMT+0000 (Coordinated Universal Time)

Saved by @Abidur_Rahman43 #javascript

let myFriend =  {
  
  name: 'Junyet ',
  age:25,
  
};

for (const [kyes,value] of Object.entries( myFriend )){
  console.log(keys,value);
}
content_copyCOPY

This code will give you access to access both key and values of an object using For Of Loop