Design comparison
Solution retrospective
Some js things don't work for me, that is, when I put it in "!=" it works for me in gmail and everything, but when I put "==" it works for me in the wrong one, what is the error?
Community feedback
- @EarthyyyPosted over 1 year ago
Hello, Regarding the issue, you should be replacing email in the comparison statement with email.value so you can access the content of the input value
0@LuccaMauroMolinaPosted over 1 year ago@Earthyyy good day, how? in the if? because I put email.value == "gmail" and it's still the same
0@EarthyyyPosted over 1 year ago@LuccaMauroMolina Yes in the if statement.
if (email.value == correcto) { console.log("tijhshtpspis"); } else { p.innerHTML = "<p>es incorrecto</p>"; } }
and that actually works! If you submit the email form with "gmail" , and opened up the console, you will see the log statement being executed
You can also check a pull request in your repository where I submitted the fix. Here's the link: Pull Request
0
Please log in to post a comment
Log in with GitHubJoin 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