I am not sure why this is not working?
<script>
var email = prompt("Please, enter your email");
if(email.includes("@")){
confirm("Do you want to receive our newsletter?");
if (confirm("Do you want to receive our newsletter?") == true) {
alert("Thank you for trust.");
} else {
alert("Maybe next time.");
}
} else{
prompt("Please, enter your email");
}
</script>