A RetroSearch Logo

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

Search Query:

Showing content from https://www.geeksforgeeks.org/javascript/javascript-unsigned-right-shift-assignment-operator/ below:

JavaScript Unsigned Right Shift Assignment Operator

JavaScript Unsigned Right Shift Assignment Operator

Last Updated : 15 Jul, 2025

In JavaScript ">>>=" is known as the unsigned right shift assignment bitwise operator. This operator is used to move a particular amount of bits to the right and returns a number that is assigned to a variable.

Syntax:

a >>>= b

Meaning: a = a >>> b

Return value: It returns the number after shifting of bits.

Example 1: This example shows the basic use of the Javascript Unsigned Right Shift Assignment Operator.

JavaScript
<script>
    let a = 16
    let b = 2
    console.log(`${a}>>>=${b} is ${a >>>= b}`)
</script>

Output:

16>>>=2 is 4

Example 2: Using a variable to store the return value by >>> operator.

JavaScript
<script>
    let a = 6
    let b = 3
    c = a >>> b
    console.log(`${a}>>>${b} is ${c}`)
    console.log(`${15}>>>${2} is ${15 >>> 2}`)
    console.log(`${10}>>>${1} is ${10 >>> 1}`)
</script>

Output:

6>>>3 is 0
15>>>2 is 3
10>>>1 is 5


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