<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>challengegreater.html</title>
</head>
<body>
<script language="JavaScript" type="text/javascript">
firstNumber=parseInt(prompt("Please enter the first number",""));
secondNumber=parseInt(prompt("Please enter the second number",""));
// insert code here
if (firstNumber>=secondNumber) {
document.write("The first number is greater than or equal to the second number");
}
</script>
</body>
</html>
Whats wrong with this code? Its supposed to say after entering the numbers in if its greater or less than but it dosent say anything. Only 3 more chapters left of this and than done WOOT WOOT lol