@neogazz
Java is a programming language in which we can create console applications, windows applications, web applications and mobile applications.
And
Javascript is a client-side scripting language used in web programming.
In this many of the authentications are done on the client machine itself rather than going to the server for those processing.
This helps the server from overburdening of requests made by client.