Too Long; Didn't Read
In Javascript, 'this' is a keyword in Javascript which refers to a property or set of properties within a certain context. In the global context, this refers to the global object - which in the browser is window, but is globalThis in Node.JS and other implementations of Javascript. In strict mode, this inside a function is undefined, but in other places, this means different things. It works differently depending on if you are using strict mode or not - so it's important you do some tests before changing your code.