Using the Bitwise AND Operator : Bitwise Operator : Operators JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Operators » Bitwise Operator »

 

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:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Operators
» Bitwise Operator