For the graphics:
- https://webglfundamentals.org/
- https://threejs.org/
For general JS: - https://developer.mozilla.org/en-US/docs/Web/javascript#tuto...
There's other stuff like build tools, cross-browser, and other stuff, but that's likely to be confusing and not super necessary to begin with. The above should be enough to get you running with what it sounds like you want to do.
I appreciate you sharing those links. I'm trying to learn mechanical engineering stuff myself, if you have any further useful learning materials I would love to see them.