In js language when i use == it means equal but what is === …?
This question frequently arises among JavaScript developers, especially those new to the language.
i want correct answer.n general, it’s recommended to use === to avoid unintended type coercion
3
Answers
This question frequently arises among JavaScript developers, especially those new to the language. It addresses the distinction between the equality operators in JavaScript: == (loose equality) and === (strict equality). The == operator performs type coercion if the operands are of different types, while === checks for both value and type equality without coercion.
forget about
==
at all, just think it does not exist== will compare value irrespective of type
=== will compare value with type