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/left_shift_assignment below:

left shift assignment ยท WebPlatform Docs

left shift assignment Summary

Moves the specified number of bits to the left and assigns the result to result. The bits vacated by the operation are filled with 0.

Syntax
result <<= expression
result
Any variable.
expression
The number of bits to move.
Examples

Using the <<= operator is the same as specifying result = result << expression


var temp = 14;
temp <<= 2;
document.write(temp);

Output: 56
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