1.

Which of the following gets converted to DOM elements by the rendering engine?(a) Tokens(b) Strings(c) Address(d) CharactersThis question was addressed to me in an interview.My doubt is from Page Render BottleNecks Optimization topic in section Invocation and Performance Navigation of JavaScript

Answer»

The correct OPTION is (a) Tokens

Explanation: The string returned by the network layer GETS tokenized into meaningful chunks. The rendering ENGINE then takes the tokens and converts them to DOM elements. There are five categories of tokens: 1) constants, 2) IDENTIFIERS, 3) operators, 4) separators, and 5) reserved words.



Discussion

No Comment Found

Related InterviewSolutions