Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Newsletter sign-up form with success message

@weldu0

Desktop design screenshot for the Newsletter sign-up form with success message coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


What are you most proud of, and what would you do differently next time?

I'm proud that I was able to practice JavaScript and learn the new trim() method. Next time, I will ensure I have a solid strategy before starting to code.

What challenges did you encounter, and how did you overcome them?

I encountered difficulties using JavaScript for email validation. To overcome this, I did some research and found a helpful solution on StackOverflow:

function validateEmail(email) {
  var re = /\S+@\S+\.\S+/;
  return re.test(email);
}

However, I don't understand why re is not a string and still contains unusual characters.

What specific areas of your project would you like help with?

Any feedback is welcome, but I would specifically appreciate help with JavaScript validation.

Community feedback

Please log in to post a comment

Log in with GitHub
Discord logo

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord