Math.sin

sin — Returns the sine of a number.

Description

Math.sin(number number)

Parameters

Name Description Type Default Optional
number number No

Examples

Example #1 – sin example
console.log(Math.sin(10)); // -0.5440211108893698 console.log(Math.sin(0)); // 0 console.log(Math.sin(-5)); // 0.9589242746631385 console.log(Math.sin('8')); // 0.9893582466233818

External references