News for hackers. Stuff that matters.
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".
Re:JavaScript Is Weird by chefandy on Sunday August 13, 2023 @12:52PM (#37111655)
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.