this post was submitted on 12 Jun 2023
1 points (100.0% liked)

Programmer Humor

32031 readers
1125 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] nodiet@feddit.de 0 points 1 year ago (1 children)

As someone who only had very peripheral contact with JavaScript I can't tell if this is real and that is really the beauty (/s) of this language

[โ€“] amki@feddit.de 0 points 1 year ago

It also works for booleans: If you want variable x to become boolean just negate it twice: !!b