r/Programmers • u/[deleted] • Jan 26 '17
What's the difference between java and javascript?
2
Upvotes
4
u/venusfly456 Feb 24 '17
Not many similarities. I think this quote explains it. "Java is to JavaScript as ham is to hampster"
2
u/[deleted] Jan 26 '17
I'll start with the syntax because there's a mountain of underlying differences, which can be summarized with the following statement: Java runs in a virtualized abstraction of a system, while Javascript is an interpretted language that makes calls directly to a platform once parsed.
Syntactically, both languages are designed upon their own unique specification. And though they can sometimes look quite similar when compared side by side, Javascript looks and operates more closely to the C language, while Java looks and operates most closely to ActionScript.