A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/javascript/operators/bitwise_and below:

bitwise and ยท WebPlatform Docs

bitwise and Summary

Performs a bitwise AND operation on two 32-bit expressions.

Syntax
result = expression1 & expression2
result
The result of the operation.
expression1
Any expression.
expression2
Any expression.
Examples

The following examples show how to use the & operator. See Remarks for more information.


var expr1 = 9;


var expr2 = 5;


var result = expr1 & expr2;

document.write(result);

Remarks

The & does a bitwise AND operation on the each of the bits of two 32-bit expressions. If both of the bits are 1, the result is 1. Otherwise, the result is 0.

Bit1 Bit2 ANDed Value 0 0 0 1 1 1 1 0 0 0 1 0 See also Other articles Attributions

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4