J
Jake Barnes
<FAQENTRY>
Since I haven't coded Javascript in awhile, I find that with my
current job I need to remind myself of basic syntax. Just now I wanted
to look up how to iterate over an object. I was looking for a reminder
of how to do this:
for (var key in styleObject) {
alert(key + " is " + styleObject[key];
}
I found that after a moment of searching around.
Why isn't this in the FAQ? Surely it is a frequent question?
</FAQENTRY>
Since I haven't coded Javascript in awhile, I find that with my
current job I need to remind myself of basic syntax. Just now I wanted
to look up how to iterate over an object. I was looking for a reminder
of how to do this:
for (var key in styleObject) {
alert(key + " is " + styleObject[key];
}
I found that after a moment of searching around.
Why isn't this in the FAQ? Surely it is a frequent question?
</FAQENTRY>