How many times will the for ... in loop execute in the following code?
const person = {
name: 'Carlos',
age: 35,
occupation: 'Engineer'
};
let count = 0;
for (let property in person) {
count++;
}
How many times will the for ... in loop execute in the following code?
const person = {
name: 'Carlos',
age: 35,
occupation: 'Engineer'
};
let count = 0;
for (let property in person) {
count++;
}