How to fix this error?
if you enter firstNumber = 125, and secondNumber = 055
the result: 125 > 055
if firstNumber = 125 and secondNumber = 55
result: 125 < 55
book code: Javascriptme pag 23 and 24.
<body>
<SCRIPT LANGUAGE="JavaScript">
var firstNumber, //declare first variable
secondNumber; //declare second variable
firstNumber = window.prompt("Enter first Number:", 0);
secondNumber = window.prompt("Enter second integer:", "0");
document.writeln("<H1>Comparison Output</H1>");
document.writeln("<TABLE BORDER = '2' WIDTH = '100%'>"); // Creates table
if (firstNumber == secondNumber)
document.writeln("<TR><TD>" + firstNumber + " = " + secondNumber +
"</TD></TR>"); // Creates rows and columns
if (firstNumber != secondNumber)
document.writeln("<TR><TD>" + firstNumber + " Not equal to " + secondNumber +
"</TD></TR>");
if (firstNumber > secondNumber)
document.writeln("<TR><TD>" + firstNumber + " > " + secondNumber +
"</TD></TR>")
else
document.writeln("<TR><TD>" + firstNumber + " < " + secondNumber +
"</TD></TR>");
// Display results
document.writeln("</TABLE>");
</SCRIPT>
</body>