Is it possible to run the newly created JavaScript file in the local workspace in the Chrome console?
The workflow that I am trying to achieve is shown in this image:

I want to be able to create a new file in my workspace, run (or require, or something else) the file and be able to use its functions and variables in the Chrome developer console.
If I'm right, does this mean running a script in the context of a web page and adding methods and variables to the window object?
Can this be done?
source share