1Javascript is used to add animations and life to web pages, and works with HTML, where Java creates applications and doesnt work with HTML. They are similar only by name.
1/*
2JavaScript: Easier to learn and run, runs in browser,
3not strictly object-orientated, mainly client-side.
4
5Java: More secure, strict OOP, steeper learning curve,
6used literally everywhere, needs to be compiled.
7*/
1java is virtualised and compiled while javascript isn't.
2javascript and java aren't that similar apart from beign
3both OOP.