form fields can be validated before the form gets sent to the server to create a better user experience.
This has the theoretical advantage of using only one language and potentially sharing code in frontend and backend. However, in reality this is not a good
reason to decide.
For certain use-cases we would also build APIs in NodeJS. In the frontend we focus on pragmatic decisions and that often means Vanilla JS or simply JQuery.