The JavaScript for/in statement loops through the properties of an object:

var person = {fname:"John", lname:"Doe", age:25}; 

var text = "";
var x;
for (x in person) {
    text += person[x]; // x is the properties of person
}

Yonggoo Noh

I am interested in Computer science and Mathematics.