Let’s get started with this recorded live session
- time() and timeEnd()
- group() and groupEnd()
- custom console logs
Here are some examples of how the console looks like in practice:
You can read more about the console and its different methods through this link.
// Arithmetic Operators are used to perform arithmetic on numbers: let a = 3; let x = (100 + 50) * a;
// Assign the value 5 to x let x = 5; // Assign the value 2 to y let y = 2; // Assign the value x + y to z: let z = x + y;
&& // logical and || // logical or ! // logical not
// Comparison operators are used in logical statements to determine // equality or difference between variables or values. == // equal to === // equal value and equal type != // not equal !== // not equal value or not equal type > // greater than
typeof // Returns the type of a variable instanceof // Returns true if an object is an instance of an object
Note: Comparison and Logical operators are used to test for true or false.