us key value in value in javascript object code example
Example: for key value in object javascript
for (const [key, value] of Object.entries(object1)) {
console.log(`${key}: ${value}`);
}
for (const [key, value] of Object.entries(object1)) {
console.log(`${key}: ${value}`);
}