I have an object in JavaScript:
{ abc: \'...\', bca: \'...\', zzz: \'...\', xxx: \'...\', ccc: \'...\', // ... }
I
const o = { name: "Max", location: "London" }; for (const [key, value] of Object.entries(o)) { console.log(`${key}: ${value}`); }
Try online