== is the comparison operator, also known as the “equal to” operator. It checks if the two values on either side of the operator are equal. For example:
let x = 5;
let y = 5;
x == y // returns true
=== is the strict comparison operator, also known as the “equal value and equal type” operator. It checks if the two values on either side of the operator are equal and of the same type. For example:
let x = 5;
let y = ‘5’;
x === y // returns false