+ 1
WHY CAN'T THIS CODE WORK
function myAlert(){ p = prompt("WRITE SOMETHING"); if(p === "") { { alert("ITS BLANK"); } setInterval(myAlert, 3000); } else { alert("OK COOL"); } }
1 Réponse
+ 2
There should be no piece of code between the if and else statement
if(condition){
statement
}else{
statement
}