//Logical Binary and Ternary Operators in Javascript
== Equal to
=== Strictly equal to
!= Not equal to
!== Strictly not equal to
> Greater than
< Less than
>= Greater than or equal to
<= Less than or equal to
&& Logical and
|| Logical or
! Logical not
? Ternary operator
// Math Operators
const now = 2022;
const age1 = now - 1994;
const age2 = now - 2000;
console.log(age1 * 2, age1 / 10, 2 ** 3);
// 2 ** 3 = 2 * 2 * 2
// Assigment Operators
let x = 10 + 5; //15
x += 10; // x = x + 10 = 25
x *= 4; // x = x * 4 = 25 * 4 = 100
x /= 5; // x = x / 5 = 100 / 5 = 20
x++; // x = x + 1
x--; // x = x - 1
// Comparison Operators
const isFullAge = age2 >= 18;
var x = 5; // assign the value 5 to x
var y = 2; // assign the value 2 to y
var z = x + y; // assign the value 7 to z (5 + 2)
let x = 5; // assign the value 5 to x
let y = 2; // assign the value 2 to y
let z = x + y;