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
Answer: Option D
Solution(By Examveda Team)
If the browser encounters a script tag without a src attribute, the rendering engine simply passes the code to the JavaScript Interpreter for execution.Related Questions on Invocation and Performance Navigation
Which of the following property gives access to the JavaScript memory usage data?
A. performance.memory
B. memory(performance)
C. performance(memory)
D. none of the mentioned
What is the purpose of the timing property in the window.performance object?
A. Time of navigation event
B. Time of page load event
C. Time of navigation and page load event
D. None of the mentioned
Which of the following property is associated with the Response event?
A. responseStart
B. responseEnd
C. both responseStart and responseEnd
D. none of the mentioned
A. responseEnd-loadEventEnd
B. loadEventEnd-responseEnd
C. loadEventEnd/responseEnd
D. responseEnd/loadEventEnd
Join The Discussion