I have a simple if statement with 'true' as condition now my code isI assigned a variable a the value of setTimeout but i dont want to execute it but javascript still executes it, Why?
if(true){
var a = setTimeout(alert("hello world"), 3000);
}
Aucun commentaire:
Enregistrer un commentaire