Check the form before it is sent

Your task In the code box, in Checkout, on submit: call e.preventDefault(), show Enter your name. when the name is empty or only spaces, Enter an email like name@example.com. when the email has no @ or no dot after it, and when both are fine, replace the form with Order placed for {name}. Then press Run my code.

Getting the editor ready