B
Q. Which attribute is used to specify that the script is executed when the page has finished parsing ( only for external scripts )
The defer attribute ensures that an external script is executed only after the HTML document has been fully parsed. This prevents blocking the rendering process, improving page load performance.
Key Differences Between defer and async:
Why the other options are incorrect:
You must be Logged in to update hint/solution
Q. Which of the following are static methods in JavaScript?
Q. What is the difference between the two lines given below ? !!(obj1 && obj2); (obj1 && obj2);
Q. Which of the following property is associated with the Processing event?
Q. What will be the output of the following JavaScript code?
Q. What is the fundamental rule of lexical scoping?
Q. What is the output of below Javascript code?
Q. Which of the following is a server-side JavaScript object?
Q. What is the role of the "continue" keyword in the following piece of JavaScript code?
Q. The regular expression to match any one character not between the brackets is __________
Discusssion
Login to discuss.