[Javascript] associative arrays question

Christopher Basken chriz at basken.com
Sat Apr 27 09:44:05 CDT 2002


At 05:21 PM 4/26/2002 -0600, you wrote:
>Use the for ... in construction, like this:
>
>for (var strCurrentKey in theirScore) {
>         alert(theirScore[strCurrentKey]);
>}
>
>Also works for looping through object properties :)  HTH.
>
>Amanda Birmingham
>Web Application Developer


Thanks!  That did the trick.




More information about the Javascript mailing list