497
submitted 2 weeks ago by [email protected] to c/[email protected]
you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 3 points 2 weeks ago

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

[-] [email protected] 2 points 2 weeks 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
497 points (97.7% liked)

Programmer Humor

36648 readers
236 users here now

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

Rules:

founded 5 years ago
MODERATORS