-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
  • 7,007
  • 2
  • 19
  • 49