Re:JavaScript Is Weird
by azangru on Sunday August 13, 2023 @12:18PM
(#37111303)
Yes, I was about to suggest that instead of "JS Is Weird", the site would be more appropriately called "My inputs are weird".
[ Parent
| on HN ]
Indeed, nobody would write this code to get the result shown— weird code is usually an accident, and errors informing you about accidents are way more useful than delivering some weird counterintuitive result just to avoid runtime errors.