Relative Content

Tag Archive for javascriptscopegoogle-chrome-devtoolsfirefox-developer-toolsedge-devtools

How to determine where a global variable is set in JavaScript

I’m working inside a function and according to the developer tools in Chrome and Firefox there’s a global variable that appears to have the data that I need. However, I don’t know where it’s coming from and hence am afraid to rely on it. Is there a way to determine where it’s declared and set in the developer tools in any browser? I have Edge (regular and canary), Chrome (regular and canary), multiple versions of Firefox, Brave, and Vivaldi.