FrontendDeveloper.in

JavaScript question detail

What is the difference between java and javascript

Both are totally unrelated programming languages and no relation between them. Java is statically typed, compiled, runs on its own VM. Whereas JavaScript is dynamically typed, interpreted, and runs in a browser and nodejs environments. Let's see the major differences in a tabular format,

FeatureJavaJavaScript
TypedIt's a strongly typed languageIt's a dynamic typed language
ParadigmObject oriented programmingPrototype based programming
ScopingBlock scopedFunction-scoped, block scoped since ES6
ConcurrencyThread basedevent based
Back to all JavaScript questions
Get LinkedIn Premium at Rs 399