There is a special 'built-in class' called Math with useful functions defined in it. We call these functions using the syntax:
Below are some of the functions included in this class:
Additional functions (including trigonometric functions) can be found here.
Examples of function use:
let squareOfTwo = Math.sqrt(2); print(squareOfTwo); //4 is printed let randomDecimal = Math.random(); print(randomDecimal); //a random number <= 1 and >=0 is printed print(Math.round(.96)); //1 is printed