@Earthyyy
Posted
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
@LuccaMauroMolina
Posted
@Earthyyy good day, how? in the if? because I put email.value == "gmail" and it's still the same
@Earthyyy
Posted
@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