any help would be appreceiated.
thanks
var mojito ="mojito";
var caipirnha ="caipirnha";
var fruit_caipirinha ="fruit caipirinha";
var iced_tea ="long lsland iced tea";
var seabreeze ="seabreeze";
var lynchburg ="lynchburg";
var esp_martini ="espresso martini";
var cosmpolitan ="cosmopolitan";
var belini ="belini";
var key_west_cooler ="key west cooler";
var drink_wanted = prompt ("please enter the cocktail you would like to make")
if (drink_wanted == mojito) {
alert ('you have asked for a mojito')
}
if (drink_wanted == caipirnha) {
alert ('you have asked for a caipirnha')
}
if (drink_wanted == fruit_caipirinha) {
alert ('you have asked for a fruit caipirinha')
}
if (drink_wanted == iced_tea) {
alert ('you have asked for a long island iced tea')
}
if (drink_wanted == seabreeze) {
alert ('you have asked for a seabreeze')
}
if (drink_wanted == lynchburg) {
alert ('you have asked for a fruit lynchburg')
}
if (drink_wanted == esp_martini) {
alert ('you have asked for an espresso martini')
}
if (drink_wanted == cosmpolitan) {
alert ('you have asked for a cosmopolitan')
}
if (drink_wanted == belini) {
alert ('you have asked for a fruit belini')
}
if (drink_wanted == key_west_cooler) {
alert ('you have asked for a key west cooler')
}
else {
alert ('sorry, that coktail isn\'t recognised')
}
my html is blank at the moment, its basically going to have a list of the cocktails available.


Sign In
Create Account


Back to top









