Emacs, when it's just part of a larger application using a different language, or when the whole environment is even more effed up than usual for JS (eg. ExtJS) and you could parse the code as well as Perl anyway.
VSCode as a stop-gap solution for more substantial JS code. The gap being until I either can configure Emacs properly (language server or something similar), or preferably when I can get rid of JS (and no, not with MS JS++).
VSCode as a stop-gap solution for more substantial JS code. The gap being until I either can configure Emacs properly (language server or something similar), or preferably when I can get rid of JS (and no, not with MS JS++).