Re:HTML comments work in JavaScript too
by wjmao88 on Tuesday March 08, 2022 @05:44PM
(#30608328)
<! is less than or not equal right? which is a strict subset of !=, since anything < by definition is !=
[ Parent
| on HN ]
Re:HTML comments work in JavaScript too
by dragonwriter on Tuesday March 08, 2022 @05:49PM
(#30608380)
> <! is less than or not equal right?
No, it is less-than-not, not less-than-or-not-equal-to.
That is <!x is the same as < (!x); if x is true-ish, it is “< false” and if x is false-ish it is “< true”.