Home / Javascript Tips Generated By ChatGPT / Looping Through Object Properties with for…in in Javascript Iterate over each property in an object. Source Code let person = {name: "John", age: 30}; for (let key in person) { console.log(key + ": " + person[key]); }