Use === Instead of ==

Many JavaScript programmers often repeat the mistake of comparing using ==, which is the type-coercion non-strict equality operator.

Example of == operator

Let’s look at an example that shows why using == may be a bad idea.

Get hands-on with 1200+ tech skills courses.