Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up

What is the difference between == and ===?

  1. A === compares value and type without coercion; == coerces types first
  2. B == compares references; === compares values
  3. C They are identical
  4. D === only works with numbers
Answer

=== compares value and type without coercion; == coerces types first

Loose equality applies conversion rules that produce surprising results, such as 0 == '0' being true. Strict equality is the safe default.

All Javascript MCQs

Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up as