520
you are viewing a single comment's thread
view the rest of the comments
[-] Demdaru@lemmy.world 4 points 4 days ago

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
this post was submitted on 08 Jun 2025
520 points (97.4% liked)

Programmer Humor

36413 readers
73 users here now

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

Rules:

founded 5 years ago
MODERATORS