So finden Sie den jeweiligen Schlüssel und Wert in JSON in JavaScript

const object1 = {
a: 'somestring',
b: 42,
c: false
};

for(let key of Object.keys(object1)){
console.log(key);
}
// expected output: 
// > "a"
// > "b"
// > "c"
Bloody Barracuda