From the JVM to the Web
Now, let us offer an overview of the web for someone who comes from Java.
The run-time environment
The package manager
In Java we have
maven is both a package manager and a build tool,
npm, both are package managers. They allow to get the dependencies for the project.
Packaging your code
In Java we have the
rollup. They can do things like minify (compress the code for better transfer speed), uglify (obfuscate the code), dead code elimination, transpile (transform code from other higher level languages, like Typescript) and a buch of other stuff. This allows better and simpler distribution through the browser.
Transpiling your code
My suggestion to start with the web world would be to just choose some of the tools and start using them until you are confortable with the different workflows.