GamerBoy705M to Software GoreEnglish • 10 months agoYes but noimagemessage-square17arrow-up1361arrow-down17file-text
arrow-up1354arrow-down1imageYes but noGamerBoy705M to Software GoreEnglish • 10 months agomessage-square17file-text
minus-square@[email protected]linkfedilink11•edit-210 months agoDepends on the language though, sometimes 5 == "5" and 5 !== "5" (PHP & JS) My guess is that a .trim() is missing somewhere Edit: removed typo in example code
minus-square@[email protected]linkfedilinkEnglish3•10 months ago 5! == “5” (PHP & JS) is not valid in either PHP or JS
minus-square@[email protected]linkfedilink1•edit-210 months agoThank 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)
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
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