The following example uses Sin to evaluate certain trigonometric identities for selected angles. The sin method of math object is used to get the sine of a number. There is a function in Javascript Mathsin which will produce a smoothly undulating value that goes from 0 to 1 to 0 to -1 and back to 0.
Sin JavaScript Gets the sine of an angle.
The sin is a static method of Math therefore it is always used as Mathsin rather than as a method of a Math object created. Therefore it is always used as Math. Var a Mathsin3. Math JavaScript Represents common mathematical values and functions.