
- Javascript Basics Tutorial
- Javascript - Home
- Javascript - Overview
- Javascript - Syntax
- Javascript - Enabling
- Javascript - Placement
- Javascript - Variables
- Javascript - Operators
- Javascript - If...Else
- Javascript - Switch Case
- Javascript - While Loop
- Javascript - For Loop
- Javascript - For...in
- Javascript - Loop Control
- Javascript - Functions
- Javascript - Events
- Javascript - Cookies
- Javascript - Page Redirect
- Javascript - Dialog Boxes
- Javascript - Void Keyword
- Javascript - Page Printing
- JavaScript Objects
- Javascript - Objects
- Javascript - Number
- Javascript - Boolean
- Javascript - Strings
- Javascript - Arrays
- Javascript - Date
- Javascript - Math
- Javascript - RegExp
- Javascript - HTML DOM
- JavaScript Advanced
- Javascript - Error Handling
- Javascript - Validations
- Javascript - Animation
- Javascript - Multimedia
- Javascript - Debugging
- Javascript - Image Map
- Javascript - Browsers
- JavaScript Useful Resources
- Javascript - Questions And Answers
- Javascript - Quick Guide
- Javascript - Functions
- Javascript - Resources
How to get the sine of a number in JavaScript?
To get the sine of a number, use the JavaScript sine() technique. The sin technique returns a numeric value between -1 and one, that represents the sine of the argument
Example
You can try to run the following code to get the sine of a number in JavaScript −
<html> <head> <title>JavaScript Math sin() Method</title> </head> <body> <script> var value = Math.sin( 0.5 ); document.write("First Value : " + value ); var value = Math.sin( 90 ); document.write("<br>Second Value : " + value ); </script> </body> </html>
- Related Articles
- How to get the cosine of a number in JavaScript?
- How to get the tangent of a number in JavaScript?
- How to get the length of a Number in JavaScript?
- How to get the square root of a number in JavaScript?
- How to get the exponent power of a number in JavaScript?
- How to get the absolute value of a number in JavaScript?
- How to get the arccosine (in radians) of a number in JavaScript?
- How to get the arcsine (in radians) of a number in JavaScript?
- How to get the arctangent (in radians) of a number in JavaScript?
- Get the hyperbolic sine of a given value in Java
- How to get the number of forms in a document with JavaScript?
- How to get a string representation of a number in JavaScript?
- How to get a number value of a string in Javascript?
- How to get a number of vowels in a string in JavaScript?
- How to get the natural logarithm (base E) of a number in JavaScript?

Advertisements