1.

Which of the following runs the JavaScript code?(a) Just In Time compiler(b) JavaScript Interpreter(c) Both Just In Time compiler and JavaScript Interpreter(d) Javascript compilerThe question was posed to me in an interview for internship.My enquiry is from Page Render BottleNecks Optimization topic in chapter Invocation and Performance Navigation of JavaScript

Answer»

Right option is (B) JavaScript Interpreter

To explain I would say: A JavaScript engine is a computer program that executes JavaScript (JS) CODE. The first JS engines were mere interpreters, but all relevant MODERN engines utilize just-in-time compilation for IMPROVED performance. The JavaScript Interpreter runs the JavaScript code.



Discussion

No Comment Found

Related InterviewSolutions