this post was submitted on 08 Jun 2025
513 points (97.4% liked)

Programmer Humor

36404 readers
15 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
[โ€“] Demdaru@lemmy.world 3 points 3 days ago (1 children)

Not much experience, but quickly learned .bind() in JS after it switched me to window instead of object.

[โ€“] bleistift2@sopuli.xyz 2 points 3 days ago

The key is to not reassign function names to local variables.

const print = obj.toString
print() // gives you a bad time