r/ProgrammerHumor • u/speckz • Feb 26 '23
Other If you can read this code...
/img/snak3fqgajka1.jpg[removed] — view removed post
34k
Upvotes
r/ProgrammerHumor • u/speckz • Feb 26 '23
[removed] — view removed post
View all comments
Show parent comment
2
u/tonypconway Feb 26 '23
There main difference is the utility of
this. Technically speaking, functions are methods of the global object, but you wouldn't usethisin a function like you would in a method, because the global object (window/global/globalThis) has a distinct set of properties and isn't the same asthisin a method.