The Math Object
Javascript (and some other languages) have built-in mathematics commands to simplify your life. In JS this is called the Math object.
The various abilities of the Math object can be found in various locations online. Here is a sampling of what you might use.
Code | Description |
| Returns 3.141592653589793 |
| Returns the |
| Returns the square root of the given |
| Rounds the given |
| Returns the Ex. |
| Returns the Ex. |
| Returns a pseudorandom decimal number between 0 and 1.
Use it in conjunction with |
Last updated