
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
JavaScript Bitwise OR Operator
If one of the bits are 1, then 1 is returned when Bitwise OR (|) operator is used.
Example
You can try to run the following code to learn how to work with JavaScript Bitwise OR Operator.
<!DOCTYPE html> <html> <body> <script> document.write("Bitwise OR Operator<br>"); // 7 = 00000000000000000000000000000111 // 1 = 00000000000000000000000000000001 document.write(7 | 1); </script> </body> </html>
Advertisements