Find the remainder when N is divided by 4 using Bitwise AND operator | Function to find the remainder ; Bitwise AND with 3 ; return x ; Driver Code
function findRemainder ( n ) { let x = n & 3 ; return x ; } let N = 43 ; let ans = findRemainder ( N ) ; document . write ( ans ) ;