this post was submitted on 15 Sep 2023
445 points (84.2% liked)

Programmer Humor

19529 readers
248 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] rockSlayer@lemmy.world 1 points 1 year ago* (last edited 1 year ago)

They made it a named function, but this is literally how you format anonymous functions in js, a key feature that usually gets called with stuff like an onclick or onload call in the html domain.