JavaScript Math

The Math.sin() Method

Math.sin() returns the sine of a number given in radians:

console.log(getRectArea(3, 4)); // Expected output: 12