Javascript Bitwise

Javascript Bitwise

JavaScript supports the bitwise operators for the  manipulation of bit strings. JavaScript converts numeric data into a 32-bit integer before performing a bitwise operation on it. The operator is applied, but by bit, to this binary representation.

if, we were to perform a bitwise AND operation (&) on 3 and 5, first the numbers would be converted to bit strings of 00000011 for  3 and 00000101 for 5 . and of each digit is then computed, with 1 representing true and operations on bits are shown on table.

amp; 00000011

&  00000101

= 00000001



Follow Us

Contact Us

Back to Top