Parameters: This function accepts two parameters
- Value1, Value2: Which represents two numbers to be multiplied.
Return Value: The Math.imul() function returns the result of the C-like 32-bit multiplication of the given arguments.
Example 1: When two positive numbers are passed as parameters.
Example 2: When both the numbers(of opposite sign) are passed as parameters.
Example 3: When two negative numbers are passed as parameters.
Example 4: When one of the parameters passed is a zero.
- Google Chrome 1 and above
- Internet Explorer 3 and above
- Firefox 1 and above
- Opera 3 and above
- Safari 1 and above