4 ms·
> Never use == in JavaScript. Use === instead. Or better, know what == [0] and === [1] do by looking at the ECMAScript reference [0]: https://www.ecma-interna
by ldeangelis 7y ago
> Never use == in JavaScript. Use === instead.
Or better, know what == [0] and === [1] do by looking at the ECMAScript reference
[0]: https://www.ecma-international.org/ecma-262/10.0/index.html#sec-abstract-equality-comparison https://www.ecma-international.org/ecma-262/10.0/index.html#...
[1]: https://www.ecma-international.org/ecma-262/10.0/index.html#sec-strict-equality-comparison https://www.ecma-international.org/ecma-262/10.0/index.html#...