1.

What is the type of datatype the async attribute optionally accepts?(a) Integer(b) String(c) Boolean(d) DecimalThe question was posed to me in class test.This interesting question is from Script Loading topic in chapter Invocation and Performance Navigation of JavaScript

Answer»

Correct answer is (C) Boolean

For explanation I would say: The async attribute is a boolean attribute. When present, it specifies that the script will be EXECUTED asynchronously as soon as it is available. The async attribute OPTIONALLY accepts the boolean DATATYPE of default VALUE as true.



Discussion

No Comment Found

Related InterviewSolutions