Increment a number without using ++ or + | function that increment the value . ; Invert bits and apply negative sign ; Driver code
function increment ( i ) { i = - ( ~ i ) ; return i ; } let n = 3 ; document . write ( increment ( n ) ) ;