Responsive, flexbox

Solution retrospective
Open to suggestion for email validation structure.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @fazzaamiarso
Hi Simios! Nice work!
To validate a string containing something, you can use contains().
const inputVal = input.value; const isValidEmail = inputVal.contains("@"); if(isValidEmail){ error.classList.add('hidden'); } else { error.classList.remove('hidden'); }
I hope it helps! Cheers!
Marked as helpful
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