[thelist] Q on assoc arrays

jsWalter jsWalter at torres.ws
Mon Dec 15 09:49:34 CST 2003


> -----Original Message-----
> From: Joshua Olson [mailto:joshua at waetech.com]
> Sent: Monday, December 15, 2003 9:30 AM
> To: jsWalter at torres.ws; thelist at lists.evolt.org
> Subject: Re: [thelist] Q on assoc arrays

> > I get 'expected identifier' error
> >
> >    alert ( ccTLD.in );
>
> > Am I missing something obvious (again)?
>
>
> When this error pops up, it's commonly misuse of a reserved word.  In this
> case, "in" is a JS keyword.  I'd not recommend using it.

Yes, I understand it's a keyword. I just didn't think it applied in object
references.



> BTW, did the other keys work, such as ccTLD.do?

no. same reason.

Like I said, just want to make sure I wasn't missing something obvious on
this.

Thanks.

Walter




More information about the thelist mailing list