JavaScript Reference/Javascript Methods/tan

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

"tan()" Example

   <source lang="javascript">
   

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


     </source>
   
  


"tan()" is applied to

   <source lang="javascript">

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

     </source>
   
  


"tan()" Syntax, Parameters and Note

   <source lang="javascript">

Note: Returns the tangent value.

Syntax:

Math.tan(param1) Parameters:

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