Find XOR of two number without using XOR operator | Returns XOR of x and y ; Driver code
function myXOR ( x , y ) { return ( x & ( ~ y ) ) | ( ( ~ x ) & y ) ; } let x = 3 , y = 5 ; document . write ( " " + myXOR ( x , y ) ) ;