5 != “5”
Aksually 5! = 120
x = x+1 therefore reality can be anything I want
Depends on the language though, sometimes
5 == "5"
and5 !== "5"
(PHP & JS)My guess is that a
.trim()
is missing somewhereEdit: removed typo in example code
5! == “5” (PHP & JS)
is not valid in either PHP or JS
Thank you for pointing it out! That’s my bad, that was a typo, I meant
5 !== "5"
(it’s the counterpart to the===
comparator in both PHP & JS)
deleted by creator
you were supposed to provide an integer, not a string! users these days. pfft.
5.toInteger()
int(‘5’)
Answer is actually a floating point value between 5.0 and 5.9 but the thing only displays a whole number.
I thought it was five.
deleted by creator
Cinco
It’s paradoxical. It is, but it also isn’t
Oh, well then. I will take that into account the next time and do better then.