Sleepless One
Insomniac code gorilla. I help maintain lemmy-ui and, to a lesser extent, Lemmy’s backend.
- 0 Posts
- 1 Comment
Joined 1 year ago
Cake day: April 21st, 2024
You are not logged in. If you use a Fediverse account that is able to follow users, you can follow this user.
In JS at least, there’s a concept of truthiness and falsiness.
0
,undefined
,null
, and a few other non-boolean values are treated asfalse
if used in conditionals and logical operations, while every other value is treated astrue
. I’m pretty sure python has something similar.