Subj : Re: SM & typeof operator To : netscape.public.mozilla.jseng From : Shanti Rao Date : Fri Jun 18 2004 11:40 pm Ah, of course. typeof is an operator, not a function. Thanks! > Shanti Rao wrote: > >> js>typeof(a).toLowerCase() >> 1 TypeError: (a).toLowerCase is not a function > > > Remember your operator precedence: . binds tighter than typeof. You > want (typeof a).toLowerCase(). > > This should not have changed in forever. > > /be .