<!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>challengetax.html</title>
</head>
<body>
<script language="JavaScript" type="text/javascript">
// **** insert code here ****
// subTotal is the total amount before taxes are added
subTotal=prompt("What is the subtotal?");
// taxRate is the tax rate
taxRate=0.0575;
// taxAmount is the amount of tax
taxAmount=subTotal*taxRate;
// total is the total the user has to pay
total=taxRate*taxAmount;
</script>
</body>
</html>