https://dlabs.ai/the-pros-and-cons-of-using-javascript-for-machine-learning/
- JavaScript is everywhere. You can run your pre-trained models almost literally on every device.
- You can train your models as you have WebGL for browser ones for having access to GPU acceleration if you're running on a browser. Besides that you can also run it on server side (thanks to Node.js) where you also have access to GPU acceleration as well.
- You can easily create browser only (and even offline apps via PWA approach) apps that won't need to have access to server side.