πŸ“Š JavaScript
Q. How can you defer script execution until the DOM is loaded?
  • (A) Use defer attribute in script tag
  • (B) Use async attribute
  • (C) Put script at the top
  • (D) Wrap code in alert()
πŸ’¬ Discuss
βœ… Correct Answer: (A) Use defer attribute in script tag

Explanation: defer delays script execution until after HTML is fully parsed.

Explanation by: Mr. Dubey
defer delays script execution until after HTML is fully parsed.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
55
Total Visits
πŸ“½οΈ
9 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
89%
Success Rate