Efficiently check whether n is a multiple of 4 or not | method to check whether ' n ' is a multiple of 4 or not ; if true , then ' n ' is a multiple of 4 ; else ' n ' is not a multiple of 4 ; Driver method
function isAMultipleOf4 ( n ) { if ( ( n & 3 ) == 0 ) return true ; return false ; } let n = 16 ; document . write ( isAMultipleOf4 ( n ) ? " " : " " ) ;