This is not a question regarding which one should I use, but a rather a question about using the '==' operator.
Lets say I have this:
let stringNumber = '2';
let numberNumber = 2;
If I do this comparison:
stringNumber == numberNumber
Result is of course true. The '==' is doing type conversion, and that leads to two questions.
- How big is the performance impact, when the '==' makes type conversion?
- Is the '===' doing any type of conversion at all, or just 'does it'?