If I’m understanding the question correctly, I’d say you should make a js folder in your public folder, then put the client-side .js files in there. This is pretty typical from an organization standpoint.
Note that you won’t link to them from your html files with
/public/js/myFile.js but simply
/js/myFile.js. From the docs:
Express looks up the files relative to the static directory, so the name of the static directory is not part of the URL.
Another potential issue you may be having is if you link the file in your html without that
/ at the beginning, the URL will be relative to the page URL, rather than the root.