What is the output of the following code?
var person = {
name: "John",
age: 30,
occupation: "Developer"
};
for (var key in person) {
console.log(key + ": " + person[key]);
}
What is the output of the following code?
var person = {
name: "John",
age: 30,
occupation: "Developer"
};
for (var key in person) {
console.log(key + ": " + person[key]);
}