JavaScript math sin() method

The JavaScript math sin() method is used to get the sine of the given number.
Syntax:

Math.sin(n)

Parameters
n: It represents the number whose sine have to be get.

Returns
Sine of the given number.

Example

<!DOCTYPE html>
<html>
<body>
<script>  
document.writeln(Math.sin(5));  
</script>  
</body>
</html>

Output

-0.9589242746631385
Please Share