Hey Martin! Congrats on completing this challenge!
-
I think that you can use just one preventdefault in the event listener of submit to reduce the code.
-
In my solution i didn't use any html functionality, i use only js and regex to validate the form and my solution got much bigger than yours. Its nice see how the same challenge can be done in different ways.
Happy coding!!
Marked as helpful