Multiplication with a power of 2 | Efficient JavaScript program to compute x * ( 2 ^ n ) ; Driver Code
function multiply ( x , n ) { return x << n ; } let x = 70 ; let n = 2 ; document . write ( multiply ( x , n ) ) ;