Question
February 23, 2008 at 09:57 AM
ftmrdh

JavaScrip

by ftmrdh . Updated 18 years, 5 months ago

Have a problem with the following Java Script example.

var newCustomer;
var establishedCustomer;

newCustomer = window.prompt(‘New customer’,’Type number 1 here’,”);
document.write(‘WELCOME – WE WILL SET UP YOUR ACCOUNT DETAILS NOW’+’
‘);
establishedCustomer = window.prompt(‘Established customer’,’Type number 2 here’);
document.write(‘SHOP UNTIL YOU DROP’);

Need help to stop the program when either 1 or 2 is imput into the solution or if after 2 attempts the program does not produce any output.

This discussion is locked

All Comments