1.

The script tag must be placed in __________(a) the head tag(b) the head or body(c) the title or head(d) after the body tagI had been asked this question in an internship interview.The above asked question is from Lexical Structure in portion Lexical Structures of JavaScript

Answer»

Correct ANSWER is (B) the head or body

To explain: If the script tag is placed after the body tag, then, it will not be evaluated at all. Also, it is ALWAYS recommended and EFFECTIVE to USE the script snippet in the

tag.


Discussion

No Comment Found

Related InterviewSolutions