difference between java and javascript

what is the difference between java and javascript?

The short version is they're two different languages with similar-sounding names and very loosely some similarity in the syntax. Recruiters will think they're the same thing and offer you Java roles if your resume contains the word 'JavaScript'.

Java is an object-oriented language, typically compiled and run by a JVM - Java Virtual Machine.

JavaScript is a loosely typed scripting language that isn't necessarily 'compiled' (unless you've added stuff like TypeScript etc on top) and is run by either a browser or a JavaScript runtime like NodeJS.

difference between java and javascript
 
 
Q