1.

Which of the following Attribute is used to include External JS code inside your HTML Document?(a) src(b) ext(c) script(d) linkThe question was asked during an interview.I'm obligated to ask this question of Lexical Structure topic in portion Lexical Structures of JavaScript

Answer»

The correct option is (a) src

For explanation I WOULD say: Script “tag” is USED to include the JavaScript CODE. To include external JavaScript files “src” ATTRIBUTE is used inside the script tag.



Discussion

No Comment Found

Related InterviewSolutions