1.

What should be the type of script_url?(a) Object(b) String(c) Array(d) Any of the mentionedI got this question at a job interview.My query is from Script Loading topic in section Invocation and Performance Navigation of JavaScript

Answer»

The CORRECT answer is (d) Any of the mentioned

To explain: The TYPE of script_url can be anything that will be compared with the typeof keyword’s result. The src ATTRIBUTE SPECIFIES the location (URL) of the external resource.



Discussion

No Comment Found

Related InterviewSolutions