Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted almost 3 years ago

Intro component signup form (HTML + SASS + JS)

sass/scss, accessibility
Siddharth•230
@siddharth-1407
A solution to the Intro component with sign-up form challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


Hello everyone, This is my solution for this challenge.

I would say, this was my first time using sass, I'm not sure if im organizing my sass correctly. I learned a lot about forms and validation from this challenge. I don't have much experience with forms and im still learning java-Script.

One thing that i don't understand is the code i copied, it checks if the email format is correct or not.

function isEmailValid(email){
    return/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(email);
}

I understand the java script part of it but, I don't understand that line of random characters. I know what's it doing but i don't understand how its doing it. So like am i really supposed to know this or can i just copy it every-time? Let me know if there's anything i can improve on.

Thanks!

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Siddharth's solution.

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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License