A JS file is saved as .js on a computer (windows for me). You can then go and edit the file using a text editor like notepad++, Atom, etc.
The same is for html, .css, and many other langaunges.
Note that you need to import the other files if you want to have them work together, like html, css, and js. Again, best to do all of this on a text editor like Atom.