for loop through object js code example
Example: javascript loop through object
var person = {"name":"bob", age:45};
for (var property in person) {
console.log(person[property]);
}
var person = {"name":"bob", age:45};
for (var property in person) {
console.log(person[property]);
}