where "value" is a numeric value and is required. To illustrate use of sin() method we are providing you a simple example.
Description of code:
The very first line of function takes the input value into a variable "val". In the second line we have supplied this value into the method sin(). Alert message shows the sine value of "val". Here is the full description of code as follows :
Output of the page would look like as given below :
We can also pass a negative numeric to the sin() method as we have passed in the following :
To download the full code visit following link.