1.

What is the purpose of holding whatever tag you create in the attribute type?(a) To have more information(b) To identify the scripting language(c) To store data(d) To store variable nameI had been asked this question in a national level competition.My query is from Lazy Loading topic in portion Invocation and Performance Navigation of JavaScript

Answer»

Correct answer is (b) To identify the SCRIPTING language

Easiest explanation: A VARIABLE is created to HOLD whatever tag you create, and then branch the logic based on the value of type, which IDENTIFIES it’s for JavaScript or for CSS. Hence, the ATTRIBUTE acts as an identifier to the tag.



Discussion

No Comment Found

Related InterviewSolutions