Comment

Comment by camblomquist

edit: I'm mostly wrong here.

Because "0" is false. In a logical world, a non-empty string being truthy is fine even if the value is "false". Javascript isn't logical.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton