Please see this guide on JavaScript Objects:
http://www.w3schools.com/js/js_objects.asp
JavaScript objects can be accessed in a number of ways. Let's take this object as an example:
var person = {
first_name: "John",
last_name: "Smith",
age: 39
};
If you wished to access the first_name you could do:
person.first_name;
Or
person['first_name'];
These would both retrieve the value.
You may also set the value in similar fashion:
person.first_name = "Michael";
Now, if you were referring to creating an iterator using a keys() method like in Java then you can't do that exactly, but you can do something similar.
You can iterate over the object however in a similar manner that you would iterate over an array:
for (var property in object) {
if (object.hasOwnProperty(property)) {
// do stuff
}
}
A newer built-in is also available where you can use Object.keys(person) to get an array of the objects keys. Read more here:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys
I suggest using Google a little more. There are plenty of resources out there for this type of question. You would find the answer more quickly than someone would respond on here.