I know that I can type into Chrome or FF the following command:
Object.keys(window);
but this displays DHTMLX stuff and also function names in w
I found a very good solution to list all the global variables with the jsl
command line tool:
Here is the documentation
I just have to put /*jsl:option explicit*/
into each file that I want to check. Then it is enough to run ./jsl -process
It is also possible to use referenceFile
that contains some intentional global variables /*jsl:import
so these variables will not be listed.