If I'm using the Node command line, I can look at global variables declared with var by displaying the global object, like so:
> global
The global variables are displayed as properties at the end of the global object.
If I declare a variable with let, then the variable is getting stashed in the "script scope" (I'm assuming; similar to what happens in the browser).
If I declare a top-level variable with let in the browser, I can view these script-scoped variables using the debugger.
Can I somehow look at script-scoped variables in Node?
Thank you.