JavaScript Reference/Javascript Methods/cos

Материал из Web эксперт
Перейти к: навигация, поиск

"cos()" Example

   <source lang="javascript">
   

<html> <body> <button onclick="alert(Math.cos(1));">COS</button> </body> </html>


     </source>
   
  


"cos()" is applied to

   <source lang="javascript">

+----------------+--------------------------------------------------------------+ | Applied_To |Math | +----------------+--------------------------------------------------------------+

     </source>
   
  


"cos()" Syntax, Parameters and Note

   <source lang="javascript">

Note: Cosine

Syntax:

Math.cos(param1) Parameters:

   param1   Required; the number to convert.
   
     
     </source>