Bitwise Operators
JavaScript does not have an integer type, but it does have bitwise operators. The
bitwise operators convert their operands from floating-point to integers and back,
so they are not nearly as efficient as they are in C or other languages. They are
rarely useful in browser applications. The similarity to the logical operators can
mask some programming errors. The bitwise
option
prohibits the use of these operators.
Get JavaScript: The Good Parts now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.