Position of rightmost different bit | function to find rightmost different bit in two numbers . ; Driver code
function posOfRightMostDiffBit ( m , n ) { return parseInt ( Math . floor ( Math . log10 ( Math . pow ( m ^ n , 2 ) ) ) , 10 ) + 2 ; } let m = 52 , n = 4 ; document . write ( " " + posOfRightMostDiffBit ( m , n ) ) ;