Spinless Tagless G-Machine is my DJ name and I'm miffed that SPJ and his Glasgow thugs stole it for their intermediate language/abstract machine that Haskell eventually compiles down to.
But really, that's not a TLA that most people know, and a little explanation upfront is useful to the unenlightened.
There's a tool that displays input JS code, and then visualizes the TurboFan IR node output. It's called Turbolizer. That would likely be the closest equivalent:
2. The answer you want is you can just use a regular Node.js debugger and attach it to whatever it is you want to look at. The scope context will show all of this info.
For things like "unused variables", etc, the TypeScript-for-JavaScript integration that I think is turned on by default in VS Code should catch this. So should Webstorm.
So should any linting tool, like ESLint.
At least I think this is what you're asking. Hope that helps.
But really, that's not a TLA that most people know, and a little explanation upfront is useful to the unenlightened.