Javascript – JS globalThis is returning a value when it should return undefined or null
I'm getting a value from a shadowed global variable when I think that it should respond with undefined. I've rewritten and condensed the original code because I could not believe that it should work but it still does. The input…