JavaScript Program on Bitwise Operator

Free Web development courses with real-time projects Start Now!!

Program 1

/// 10101
// AND OR X-OR
 // &-And   |-OR  ^- XOR  ~ Not  <<left Shfit >> right shift  >> rightshift with zero fill

 //console.log(9&9)  //9
 //console.log(9|9)  //9
 //console.log(12&12|12)
 //console.log(9^5)
 //console.log(9^9)
 //console.log(10&10|10 ^10)
 //console.log(~-12);
  console.log(4<<4)


 /* 
             00000000000101000  
  
    
 */

 

We work very hard to provide you quality material
Could you take 15 seconds and share your happy experience on Google

follow dataflair on YouTube

Leave a Reply

Your email address will not be published. Required fields are marked *