Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

  1. What will happen if the browser encounters a script tag without an src attribute?

  2. A.

     Throws an error

    B.

     Throws an exception

    C.

     Sends it to the compiler

    D.

     Sends it to the interpreter

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    If the browser encounters a script tag without a src attribute, the rendering engine simply passes the code to the JavaScript Interpreter for execution.


Be The First To Comment