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 has to be got.

Returns Sine of the given number.

Example:

<!DOCTYPE html>
<html>
<body>
<script>
document.writeln(Math.sin(5));
</script>
</body>
</html>
Please follow and like us:
Content Protection by DMCA.com