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