JavaScript Reference/Javascript Methods/cos
"cos()" Example
<html>
<body>
<button onclick="alert(Math.cos(1));">COS</button>
</body>
</html>
"cos()" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |Math |
+----------------+--------------------------------------------------------------+
"cos()" Syntax, Parameters and Note
Note:
Cosine
Syntax:
Math.cos(param1)
Parameters:
param1 Required; the number to convert.