Re: Cookie problem! Getting error when passing the expire date.
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: Cookie problem! Getting error when passing the expire date.

From: Dr John Stockton <jrs@merlyn.demon.co.uk>
Date: Sat Apr 29 2006 - 22:12:39 CEST

JRS: In article <Xns97B4759D23B5eejj99@194.109.133.242>, dated Sat, 29
Apr 2006 09:33:41 remote, seen in news:comp.lang.javascript, Evertjan.
<exjxw.hannivoort@interxnl.net> posted :
>Dr John Stockton wrote on 28 apr 2006 in comp.lang.javascript:
>
>> Alternatively, X|0 seems to convert most things to a
>> respectable Number.
>>
>
>+X|0
>
>===========
>
>x='a'
>y=+x|0
>alert(y);
>
>x='5'
>y=+x|0
>alert(y);

For me, the + makes no visible difference to those.
 

-- 
 © John Stockton, Surrey, UK.  ?@merlyn.demon.co.uk   Turnpike v4.00   IE 4 ©
 <URL:http://www.jibbering.com/faq/>  JL/RC: FAQ of news:comp.lang.javascript 
 <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.
Received on Mon May 1 05:27:08 2006