I don't know about Javascript, but a good deal depends on how that
functionality is implemented, and what language you're in.  They're not
always the same thing, and shouldn't always be used like they are the same
thing.  Again though, they may be in Javascript, i'm not saying they're
not. (I'm not really a javascript expert)

In the Java language, for example, you have the instanceof operator.  This
is fine if you only need to check the type of something only a few times,
but if it's a several times per unit time kinda thing, you start to run
into efficiency problems.  So using methods that make use of more efficient
algorithms become the better way to go.

cheers

Michael Lawson
Content Tools Developer, Global Solutions, ibm.com
Phone:  1-919-517-1568 Tieline:  255-1568
E-mail:  mjlaw...@us.ibm.com

'Examine my teachings critically, as a gold assayer would test gold. If you
find they make sense, conform to your experience, and don't harm yourself
or others, only then should you accept them.'


                                                                       
  From:       Aleem B <ale...@gmail.com>                               
                                                                       
  To:         jquery-en@googlegroups.com                               
                                                                       
  Date:       02/18/2009 08:36 AM                                      
                                                                       
  Subject:    [jQuery] Re: A question for John Resig                   
                                                                       






> I know they are there and I've used added functions to save on the
> code size, which makes a big difference when used a lot.

It doesn't make any difference save for a few characters.

<<inline: graycol.gif>>

<<inline: ecblank.gif>>

Reply via email to