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

Programmer Humor

31997 readers
773 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
top 4 comments
sorted by: hot top controversial new old
[–] 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

[–] LovelyCupcake@feddit.de 0 points 1 year ago* (last edited 1 year ago)

It works the other way around as well

[–] drownedPhoenician@feddit.de 0 points 1 year ago

I never learned JavaScript and I can very happily say, I won't need it for my career. Hopefully.