For..in Loop

Code Structure
var person = {
 firstName : "Bill",
 lastName : "Gates",
 age : 30
}
var x;
for (x in person) {
 alert(person[x]);
}

Share this

Related Posts