24
submitted 1 year ago by [email protected] to c/[email protected]
you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] -2 points 1 year ago* (last edited 1 year ago)

Whereas many languages make functions first class citizens, via the use of this javascript turns execution contexts into first class citizens as well.

You can build up an object of key value pairs and then proceed as if those were named variables in the code.

Obviously it has its pros and cons, but it’s a powerful tool.

this post was submitted on 08 Jul 2023
24 points (83.3% liked)

Showerthoughts

29247 readers
444 users here now

A "Showerthought" is a simple term used to describe the thoughts that pop into your head while you're doing everyday things like taking a shower, driving, or just daydreaming. The best ones are thoughts that many people can relate to and they find something funny or interesting in regular stuff.

Rules

founded 1 year ago
MODERATORS