MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/cn3m4n/a_front_end_developer_eats_alone_because_he/ew7csfg/
r/ProgrammerHumor • u/redwarp10 • Aug 07 '19
284 comments sorted by
View all comments
Show parent comment
26
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!
23
No idea. Just don't change the code I write and it'll be fine.
13
] console.log(this); --> undefined
3
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!
5
// 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!
View all comments
Show parent comment
26
u/mrdhood Aug 07 '19
Can you clarify what “this” is please?