Hi there could someone please take a look at the following code and point me in the right direction of where the errors are have found the obvious ones your help would be greatly appreciated.
Thanks
Desperate Student!!!!
<html>
<head> M 150 TMAO3 Question 1
<title>Enter a currency</title>
<script language="JavaScript" >
var currencyType
currencyType = 0;
var amountEntered;
amountEntered = 0;
var amountConverted;
amountConverted = 0;
currencyType = window.prompt('Please enter the currency 0) Dollar 1) Euro,'');
currencyType = parseFloat(currencyType);
while (currencyType >= 0 && currencyType < 2)
{
currencyType = window.prompt('Please re-enter - currency should be 0 or 1', '');
currencyType = parseFloat(currencyType);
}
amountEntered = window.prompt('Please enter the amount to be converted','');
amountEntered = parseFloat(amountEntered);
document.write('<BR>' + amountEntered + ' of type ' + currencyType + ' is ...')
</script>
</head>
<body>
</body>
</html>


