Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

  1. The script tag must be placed in

  2. A.

     head

    B.

     head and body

    C.

     title and head

    D.

     all of the mentioned

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    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 <head> tag.


Be The First To Comment