extract key value pairs from 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}`);
}