[Javascript] What operator is the circumflex accent (^) in javascript?

Flávio Gomes flavio at economisa.com.br
Wed Aug 29 12:09:12 CDT 2007


Its a bitwise XOR

2 ^  2

binary
10 ^ 10 = 00 (0)

1 ^ 2

binary
01 ^ 10 = 11 (3)

Alberto Domingo escreveu:

> *What operator is the circumflex accent (^) in javascript?
>  
> Sorry if this is too simple, but I can´t find  any thing about this 
> operator.
> Surely it is trivial.
>  
> Thanks in advance.
>  
> Alberto
>  
> *
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Javascript mailing list
>Javascript at lists.evolt.org
>http://lists.evolt.org/mailman/listinfo/javascript
>

-- 
Flavio Gomes
flavio at economisa.com.br

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20070829/f8011fce/attachment.htm>


More information about the Javascript mailing list