1.

Which of the following has a lesser benchmark time for using JQuery to access DOM versus pure JavaScript in milliseconds?(a) Chrome JQueryDOM_(b) Chrome JSDOM_benc(c) Firefox JQueryDOM_(d) Firefox JSDOM_bencThis question was addressed to me during an interview.This question is from Comparison of Core JavaScript versus Frameworks topic in section Caching, Debugging and Animation of JavaScript

Answer»

Correct OPTION is (d) Firefox JSDOM_benc

The explanation: jsdom is a pure-JavaScript implementation of many web STANDARDS, notably the WHATWG DOM and HTML Standards, for use with Node.js. When we try to compare the average benchmark time for USING JQuery to access DOM versus pure JavaScript in MILLISECONDS, the Firefox JSDOM_benc has a lesser benchmark time.



Discussion

No Comment Found

Related InterviewSolutions