πŸ“Š JavaScript
Q. Which method is used to prevent the default action of an event?
  • (A) preventDefault()
  • (B) stopDefault()
  • (C) halt()
  • (D) cancelEvent()
πŸ’¬ Discuss
βœ… Correct Answer: (A) preventDefault()

Explanation: preventDefault() stops the browser’s default behavior for an event.

Explanation by: Mr. Dubey
preventDefault() stops the browser’s default behavior for an event.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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