Difference Between Java and JavaScript

Java JavaScript
Runtime Environment JVM (Java Virtual Machine) on desktop applications, servers, and Android devices Browsers and NodeJS
Compiled or Interpreted Compiled Interpreted
Data Typing Strongly typed Weakly typed
Primitive Data Types Boolean, Byte, Short, Int, Long, Float, Double, Char Boolean, Number, String, undefined, Null
OOP (Object Oriented Programming) Type Class Prototype
Scope Block based Function based


comments powered by Disqus