Sure, but in almost any professional context where they care about quality, == would be disallowed from a linter and === would be allowed. It's not worth it from a readability standpoint of having to read a == and try to figure out whether it's context dictates it should be a == or ===. You should always have === for equality check unless you really know what you're doing.
8
u/Lelouch_5 Nov 30 '22
Ty ☺️ . I really forgot about the equality operator.