English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

why wont this work help

<br /> Delivery charges<br />







i have to run this program then add the following numbers 24 25 99 100 just cant get the dam thing to work any help would b great thanks to you all

2007-05-06 22:55:00 · 4 answers · asked by bud1658 2 in Computers & Internet Programming & Design

4 answers

SCRIPT LANGUAGE = "Javascript">
var orderValue;
orderValue = window.prompt('How much is the order worth in
Pounds Sterling?','');
document.write('The value of your order is £' + orderValue
+ '.
');

if (orderValue < 25) { document.write('Delivery charge is £3.00') }
else if (orderValue >= 25) && (orderValue < 100)
{ document.write('Delivery charge is free) }
else if (orderValue >= 100) { document.write('Delivery charge is free with a free gift') }
}
}
document.write('
');
document.write('Thank you for shopping with us.');


try like that , i think your code is completely true.

2007-05-06 23:05:55 · answer #1 · answered by jok3r 4 · 1 0

Programming is an application of a few type that sends binary to a working laptop or computing device for the computing device to technique it (0's and a million's). JavaScript (to not be perplexed with Java) is a elementary language used in web pages. It facilitates you to do stuff while not having to reload an internet site, like once you hover over on a drop down menu on the right and a catalogue comes down.

2016-10-14 23:49:26 · answer #2 · answered by ? 4 · 0 0

orderValue = window.prompt('How much is the order worth in
Pounds Sterling?',''); //after this codes, add below codes

orderValue=parseInt(orderValue);

2007-05-06 23:07:32 · answer #3 · answered by James Bond 5 · 0 0

if (orderValue >= 25) && (orderValue < 100) // error found!
//what's missing here? if(...) && (...)
.
.
.
.
//exactly... if((...) && (...))

2007-05-06 23:03:01 · answer #4 · answered by nightgirl1200 4 · 0 0

fedest.com, questions and answers