Calling e.preventDefault() inside a form's submit handler:

  1. Resets the CSS
  2. Clears the form
  3. Validates the email
  4. Stops the browser from reloading the page / sending the form
Answer

D) Stops the browser from reloading the page / sending the form

preventDefault stops the default submit navigation so JavaScript can handle it.

Computer Science MCQ · More Lab: Mobile-Friendly Web Page MCQs · Practise