Pseudo-elements(CSS). JavaScript test() method for RegEx. Truthy-falsy

Solution retrospective
Updated solution. Added better RegExp and remove class when email is correct. Any further feedback appreciated.
**
Hi, I'd like some help with the Regular Expression. For some reason it is always returning false. Additionally, how does one reset the DOM without reloading the page? Thank you FEM for all that i'm learning. I first started this challenge 11 months ago and my code was horrific. I now feel I have made great strides. Thanks once again.
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Krista Calleja'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