If user inputs distance is within 3 miles, there's no charge.
If user lives more than 3 miles but not more than 12 they pay.
No delivery over 12 miles.
I'm struggling with making the code do more than 3 but less than 12 miles.
Could anyone give me a bit of a clue please?
Below is the partially coded page.
var extraDistance; // A variable you will need to use
distance = window.prompt('Please enter the distance in miles', ''); distance = parseFloat(distance); // Insert your code here </SCRIPT>
Once again I have reason to Thank You so very much, Shabbir. No wonder I couldn't get it right, as I've never done the variable IF !! Am on huge learning curve
|All times are GMT +5.5. The time now is 15:50.|