I am having difficulty running the code below which contains if statements. I have tried removing some parts of it, but still can't get the alert to show up. Any advice would be highly appreciated. Thank you.
<!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>