I think this is a good counter point, which is why I made a version of emacs fully scriptable from javascript and typescript [0]
[0] https://github.com/emacs-ng/emacs-ng Disclosure I've posted about this on HN in the past, but I felt it was very relevant to the parent comment.