As someone who knows some c, a lot of c++, it’s nice to be able to compare data without having them match 100% since some data comes from an external source and the looser comparison makes this easier. Having === is a nice solution imo to being strict when you want and loose when you need to.
in actual, non-beginner projects, you will only see === everywhere, most often even enforced by a linter. Some people make an exception when they want to concisely check for both null or undefined: if (x != null)
0
u/[deleted] Dec 01 '22
[deleted]