BitwiseOperator-3

 

Example of Bitwise Operator ^

 
 
 
<!DOCTYPE html> <html> <head> <title>Welcome to LearnKode - A code learning platform</title> </head> <body> <script> var val1 = 9; var val2 = 15; document.write("(val1 ^ val2) => "); result = (val1 ^ val2); document.write(result); </script> </body> </html>
Output