Important Notice:

Course Content
Switch Statement
0/1
break and continue Statements
0/3
Basic Form Validation in JavaScript
0/1
JavaScript & Angular JS (Chapter- 6) M2-R5.1
About Lesson

bitwise operators

         बिटवाइज़ ऑपरेटर ऑपरेंड पर बिटवाइज़ ऑपरेशन करते हैं।

ऑपरेटर

विवरण

उदाहरण

&

Bitwise AND

(10 ==20 & 20==33) = असत्य

|

Bitwise OR

(10==20 | 20==33) = असत्य

^

Bitwise XOR

(10==20 ^ 20==33) = असत्य

~

Bitwise NOT

(~ 10) = -10

<< 

Bitwise left shift

(10<<2) = 40

>> 

Bitwise right shift

(10>>2) = 2

>>> 

Bitwise right shift with zero

(10>>> 2) = 2

 

bitwise operators

            Bitwise operators perform bitwise operations on operands.

operator

Description

Example

&

Bitwise AND

(10 ==20 & 20==33) = false

|

Bitwise OR

(10==20 | 20==33) = false

^

Bitwise XOR

(10==20 ^ 20==33) = false

~

Bitwise NOT

(~ 10) = -10

<< 

Bitwise left shift

(10<<2) = 40

>> 

Bitwise right shift

(10>>2) = 2

>>> 

Bitwise right shift with zero

(10>>> 2) = 2

error: Content is protected !!