I am trying to run the below code consisting of if statments , but i am not able to show the alert.I even tried only if but no luck. Any help would be appreciated. Thanks.
<!DOCTYPE html>
<html>
<body>
<script>
var a= "am";
var c = 8;
var d = 7;
if(a == a)
{
alert("1st if");
if(c > d){
alert("2nd if");
return false;
}
else{
alert("1st else");
}
}
</script>
</body>
</html>
Aucun commentaire:
Enregistrer un commentaire