For every set bit of a number toggle bits of other | Function for the Nega_bit ; Driver code
function toggleBits ( n1 , n2 ) { return ( n1 ^ n2 ) ; } let n1 = 2 , n2 = 5 ; document . write ( toggleBits ( n1 , n2 ) ) ;