Похожие чаты

As @Floofies says, we have to use 'flipped' version of

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

2 ответов

16 просмотров
Harish- Автор вопроса

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

Похожие вопросы

Карта сайта