In comp.lang.javascript message <11*********************@m58g2000cwm.goo
glegroups.com>, Thu, 15 Feb 2007 02:40:40, Richard Cornford
<Ri*****@litotes.demon.co.ukposted:
>On Feb 15, 4:22 am, John W. Kennedy wrote:
<snip>
>>>a = !a;
Or:
a ^= true;
But then - a - is numeric not boolean.
Consequentially and more importantly, if the original a was an integer
greater than 1, then both a and the result would test as true.
It's a good idea to read the newsgroup and its FAQ. See below.
--
(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.htmjscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/TP/BP/Delphi/jscr/&c, FAQ items, links.