I would like to have a short and simple explanation, where the biggest differences are and what that means.
and also in deeper inspe tion they are different syntax guys ;) (for example functions definitions).
They are totally different languages, use in different applications. Please dont try to compare them. https://code.sololearn.com/WXpOiMS000u0/?ref=app
Java - global purpose language. You can code almost everything. JS - client side scripting language. It's mainly Web Front End oriented.
Thx to you all! I was confused because I first didn't know they are 2 different things and I learned Java on Sololearn and JS on Py. Also the descriptions sound the same at Sololearn.
@Jayzn Don't worry, I know you are new. In fact, there are so so many newbies ask the similar question. I advise you to search Q&A questions or Google it first, before asking some basic questions here.