-5

Is it advisible to check for equality using === or !== operator in case of variables having only two possible values? What is the difference in terms of performance using these two comparison operators?

1 Answers1

-2

Use whatever makes the code more readable.

There's virtually no performance difference between === and !==.

marco-a
  • 5,590
  • 1
  • 17
  • 43