+ 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 Antwort
+ 2
There should be no piece of code between the if and else statement
if(condition){
statement
}else{
statement
}