In comp.lang.javascript message <4633d1f8$0$90274$14726298@news.sunsite.
dk>, Sat, 28 Apr 2007 23:00:01, FAQ server <javascript@dotinternet.be>
posted:
> ...
> To overcome this, first convert the
>string to a number. For example:
>` Number(varname) ` or ` varname*1 ` or ` varname-0 ` or
>` parseInt(varname, 10) ` or ` parseFloat(varname) ` or ` +varname `.
That does not IMHO represent the present views of the newsgroup; the
following should do so better.
To overcome this, first convert the string to a number. For example:
` +varname ` ` or ` Number(varname) ` or
` parseInt(varname, 10) ` or ` parseFloat(varname).
While it may sometimes useful to describe inferior code, that should not
be done within a recommendation.
It's a good idea to read the newsgroup c.l.j and its FAQ. See below.

Signature
(c) John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v6.05 IE 6
news:comp.lang.javascript FAQ <URL:http://www.jibbering.com/faq/index.html>.
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.