Multiply any Number with 4 using Bitwise Operator | function the return multiply a number with 4 using bitwise operator ; returning a number with multiply with 4 using 2 bit shifting right ; Driver Code
function multiplyWith4 ( n ) { return ( n << 2 ) ; } var n = 4 ; document . write ( multiplyWith4 ( n ) ) ;