object = {key1: "data", key2: 255} for (let key in object) { console.log(key); } // output: // key1 // key2