
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Bitwise OR Assignment Operator in JavaScript
It performs OR operation on the right operand with the left operand and assigns the result to the left operand.
Example
You can try to run the following code to learn how to work with Bitwise OR Assignment Operator −
<html> <body> <script> var a = 2; // Bit presentation 10 var b = 3; // Bit presentation 11 document.write("(a |= b) => "); document.write(a |= b); </script> </body> </html>
Advertisements