Turn off the rightmost set bit | Set 2 | Unsets the rightmost set bit of n and returns the result ; Driver Code
function FlipBits ( n ) { return n -= ( n & ( - n ) ) ; } let N = 12 ; document . write ( " " ) ; document . write ( " " + FlipBits ( N ) ) ;