how to compare java script operators?


how to compare java script operators


You use === instead of == when trying to compare Objects.

The == (or !=, respectively) operator performs an automatic type conversion and only checks the value attribute of the compared projects. The === (or !==) operator will not perform any conversion. It compares the value and the type, which could be considered faster than ==.


Article by Morning Train Technologies

Paul Isaris