JAVA vs JAVASCRIPT (Which is better? or What are the differences? or Which should I learn?) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 7

JAVA vs JAVASCRIPT (Which is better? or What are the differences? or Which should I learn?)

Should I learn Java or JavaScript? While they have similar names, they are totally different. It isn't like HTML, where learning HTML gives you the basic understanding of HTML5. I heard Java and Javascript have similar syntax and structure. They both have syntax based on C, but they are totally different. How so, aside from the length of the names? Javascript is designed to run in a browser. Java is an object oriented programming language that runs within the Java Virtual Machine. Which language should I learn? It depends on what you want to do. If you want to create webpages or apps that run through websites like some games, learn JavaScript. And when is Java a good idea? You'd use Java to create games and programs that don't rely on a browser to run. I heard the choice of language should depend on your personal style. JavaScript is more fluid, while Java is more rigid but better defined. But unless you use server-side Javascript, there's no cross-over between what the two languages can do. I wonder which one is more valuable in the marketplace. Knowing JavaScript means you'll be able to get some project immediately. Conversely, if you're going to be an app designer, learn Java. I thought jQuery has more job opportunities. Though I do know app designers make more money than web designers in general. JavaScript and jQuery are two sides of the same coin. Pity, since JavaScript at least has Java in its name. If you want Java and JavaScript at the same time, take classes on jQuery with a cup of coffee on the side. At least if I learn either language, I'll make more than the person serving me the coffee.

8th Jan 2017, 1:09 AM
Xperience
Xperience - avatar
2 Answers
+ 3
Despite having the same name Java and JavaScript has nothing to do with each other. JavaScript is actually ecma script and was branded as java like a marketing ploy at the time because of how big Java were. In the marketplace Java is definitely more valuable.
8th Jan 2017, 1:52 AM
Alex
Alex - avatar
0
I think JavaScript is used only for controlling webpages in browsers but java handles app, for JavaScript you have to start with <script> but in java it alternates.
11th Apr 2017, 2:01 PM
Igwe Lexington
Igwe Lexington - avatar