Basically, yes, if you know JS and whatever framework the company you’re applying to uses, you can get a job, but if it’s your first job they might expect to give you a decent amount of hands-on training for the first 3-6 months or so.
As with all programming languages, the choice really boils down to what you’re prepared for and what you are doing to create your resources. JS is still very much a web technology, whereas Java is a general-purpose programming language that can create anything.
- Frontend Masters Courses.
- Learn to code on FreeCodeCamp.