this post was submitted on 01 Jun 2026
191 points (80.1% liked)

memes

21852 readers
2291 users here now

Community rules

1. Be civilNo trolling, bigotry or other insulting / annoying behaviour

2. No politicsThis is non-politics community. For political memes please go to !politicalmemes@lemmy.world

3. No recent repostsCheck for reposts when posting a meme, you can only repost after 1 month

4. No botsNo bots without the express approval of the mods or the admins

5. No Spam/Ads/AI SlopNo advertisements or spam. This is an instance rule and the only way to live. We also consider AI slop to be spam in this community and is subject to removal.

A collection of some classic Lemmy memes for your enjoyment

Sister communities

founded 3 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] slazer2au@lemmy.world 154 points 1 month ago (7 children)

JS devs are like yep, that's clearly concatenation of 2 strings.

[–] zxqwas@lemmy.world 32 points 1 month ago (1 children)

But for some reason 456 + 123 = Null.

[–] Zwiebel@feddit.org 29 points 1 month ago (1 children)
[–] lokalhorst@feddit.org 12 points 1 month ago
[–] farmgineer@nord.pub 12 points 1 month ago

I came to complain about JS and see that I was beat to the punch

[–] 30p87@feddit.org 9 points 1 month ago (1 children)

I mean everyone looking at that equation should think that

[–] slazer2au@lemmy.world 4 points 1 month ago

Compared to a type safe language where it would be an equation rather then concatenation.

[–] DmMacniel@feddit.org 7 points 1 month ago (1 children)

Only when the first statement is a string already would that result in a string concat.

[–] Ziglin@lemmy.world 1 points 1 month ago

They are implied to both being strings. As such the first one already is a string. Neither is marked as such in a standard way though.

[–] TomMasz@piefed.social 6 points 1 month ago

Came here for JavaScript mention, was not disappointed.