The Math imul() static method returns the result of the C-like 32-bit multiplication of the two parameters.
console.log(Math.imul(3, 4));
// 12
console.log(Math.imul(-5, 12));
// -60
console.log(Math.imul(0xffffffff, 5));
// -5
console.log(Math.imul(0xfffffffe, 5));
// -10