Can JavaScript use COM libraries and windows APIs? The JavaScript ecosystem is big but I doubt it covers much of what a typical VBA application needs. I think C# or another .Net language would be more suitable.
https://docs.microsoft.com/en-us/microsoft-edge/windows-runt...
I'm sure Microsoft is probably at least considering making JavaScript work well with existing Windows APIs.
https://social.msdn.microsoft.com/Forums/en-US/ebb5e04b-d00a...