M

Mr. Dubey • 52.48K Points
Coach

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

  • (A) Throws an error
  • (B) Throws an exception
  • (C) Sends it to the compiler
  • (D) Sends it to the interpreter
  • Correct Answer - Option(D)
  • Views: 48
  • Filed under category JavaScript

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

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics