Using the Bitwise AND Operator
|
|
<html> <script language="JavaScript"> <!-- // integer = 32-bit binary representation // 11 = 00000000000000000000000000001011 // 6 = 00000000000000000000000000000110 // 2 = 00000000000000000000000000000010 answer = 11 & 6; document.write("11 & 6 = ",answer); --> </script> </html>
|
|
|
HTML code for linking to this page:
Related in same category :
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
|