![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.javascript archiveRe: Cookie problem! Getting error when passing the expire date.
From: Evertjan. <exjxw.hannivoort@interxnl.net>
Date: Sun Apr 30 2006 - 10:39:33 CEST
Dr John Stockton wrote on 29 apr 2006 in comp.lang.javascript:
> JRS: In article <Xns97B4759D23B5eejj99@194.109.133.242>, dated Sat, 29
You are right.
Because a string, like a zero, equals false, when |-ing.
So if you want only NaN to default to 1, you are in trouble anyway:
x='3'
x='aString'
x='0'
Not much of a zero tolerance!
-- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress)Received on Mon May 1 05:27:42 2006 |