CodesJava

Easy learning with example program codes

JavaScript math acos() method

The JavaScript math acos() method is used to get the arccosine of a number in radians.
Syntax:

Math.acos(n)

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

Returns
Arccosine of a number.

Example

<!DOCTYPE html>
<html>
<body>
<script>  
document.writeln(Math.acos(1));   
</script>  
</body>
</html>

Output

0
Please follow and like us:
error








Copyright © 2019 CodesJava DMCA.com Protection Status