JavaScript is a/an ______ language.
2019
JavaScript is a/an ______ language.
- A.
Machine language
- B.
Interpreted language
- C.
System language
- D.
Compiled language
Attempted by 129 students.
Show answer & explanation
Correct answer: B
Answer: JavaScript is an interpreted language. It is typically executed by the browser or runtime (for example, Node.js) directly at runtime, without a separate ahead-of-time compilation step.
Modern JavaScript engines often use Just-In-Time (JIT) compilation to convert hot code into machine code for better performance; this is a runtime optimization and does not change that JavaScript is delivered and executed as source by the runtime.
Because of runtime execution and dynamic behavior, JavaScript is considered an interpreted, high-level scripting language.
A video solution is available for this question — log in and enroll to watch it.