4 ms·
Javascript lets you do it if you use the equality (==) instead of the identity (===).. i think.
by jugg1es 9y ago
Javascript lets you do it if you use the equality (==) instead of the identity (===).. i think.
- faceplanted 9y agoJavascript lets you do anything wrong if you use == and not === though, I'm pretty sure the machine apocalypse is going to happen because someone types == instead of === at this point.
- TallGuyShort 9y agoAt least if the Terminators are running JavaScript they'll be pretty easy to thwart.
- unkown-unknowns 9y agoBlackhat conference talk we might see in the future: "How I achieved remote code execution on the T-1000 and singlehandedly averted the extinction of the human race"
- profmonocle 9y agoJust tested (in the node CLI console) and that doesn't seem to be the case. Edit: It's true in PHP though. :-/
- tyingq 9y ago>Edit: It's true in PHP though. :-/ Can you post exactly what you did in PHP that shows "NULL" is equal to NULL? There's quite a few approaches like ==, ===, and is_null(). I can't get any to think "NULL" is NULL, though I imagine I'm missing something.
- fenwick67 9y agonull == undefined in js.
- nulagrithom 9y agoNope. Not even JavaScript screws this one up. You've got to be doing something stupid with strings to get tripped up by "Null".
- swalsh 9y agoImagine a protocol that uses xml.... there's a few out. There are no quotes so null as a string will look exactly the same as A NULL value.
- kpil 9y agoBut that's just the tip of the iceberg that xml is a amateurish protocol language. I'm so glad that it's finally dying. Unfortunately it's replaced by something even more messed up
- ams6110 9y agoGiven that the entire protocol of the web (html and http) is string-based, that's not very unlikely.