this right?
Now, lets think about the aftereffects
The string value passed the type checking. But when we add or substract that value else where in the code, it can produce unexpected outcomes
So, safe way is, we should typecast it manually . in that situation we can use '===' operator
No, the string will always be coerced to number in that case, flipping will give the same result
Обсуждают сегодня