0 votes
in JavaScript by
What are the differences between operator ‘==’ and ‘===’?

1 Answer

0 votes
by

The difference between operator “==” and operator ‘===’ is that the former compares the variable by making a type correction. So, if you were to compare a number with a string with numeric literal, such comparison can be made using ‘==’ but not ‘===’. ‘===’ checks the value and the type of two variables. 

...