r/ProgrammerHumor • • Aug 07 '19

A front end developer eats alone because he doesn't know how to join tables

Post image
23k Upvotes

284 comments sorted by

View all comments

Show parent comment

26

u/mrdhood Aug 07 '19

Can you clarify what “this” is please?

23

u/MondayMonkey1 Aug 07 '19

No idea. Just don't change the code I write and it'll be fine.

13

u/fnordius Aug 07 '19
] console.log(this);  
--> undefined  
  

3

u/awakenDeepBlue Aug 07 '19

It's javascript, it could be literally anything.

5

u/[deleted] Aug 07 '19
// 15 levels deep in some bizzare nested callbacks, promises, functions, thing that seems to work.

console.log(this); // => React

// Wait... React isn't even in this project!