Why not to use == and always use ===?
Below reasons are responsible for not using ==.
- Execution Time
- Confusion while debugging.
Let’s start with first point
- Confusion while debugging:- Whenever while debugging the code, if let’s say first operand is of type integer and second operand is of string data type, then it may confuse the person and also it is not a good practice to use string to represent the number value.
Thank you please follow me