-
console.log()
For debugging purposes, you can call the console.log() method in the browser to display data.
Example:
console.log("Hello, world!");
-
Math Object
The JavaScript Math Object allows you to perform mathematical tasks on numbers. Unlike other objects, the Math object has no constructor. The Math object is static. All methods and properties can be used without creating a Math object first.
Example:
Math.PI;
-
Arithmetic Operators
Arithmetic Operators allow you to perform math operations with code!
- + Addition
- - Subtraction
- * Multiplication
- ** Exponentiation
- / Division
- % Modulus (Division Remainder)
Example:
let x = 4; let y = 5; let z = x + y; What is z?