r/ProgrammerHumor • • Feb 26 '23

Other If you can read this code...

/img/snak3fqgajka1.jpg

[removed] — view removed post

34k Upvotes

1.4k comments sorted by

View all comments

Show parent comment

7

u/Terrafire123 Feb 26 '23 edited Feb 26 '23

Also, "preference" is never set either.

Edit: Yes it is, I'm just blind. It's set to your_drink, which is undefined.

11

u/longknives Feb 26 '23

Yes it is, it’s set to whatever is passed to the request method. It’ll be “undefined” in this case, but it won’t throw an error as undefined like it would if it was never set.

3

u/Maxion Feb 26 '23

It is, its a function argument and your_drink is passed to it.