Posted 14 May 2011 - 03:14 PM
My wife is doing a course and is having difficulty getting this to run ?
any help would be very much appreciated as to why it does not work as it should.
Many thanks in advance.
<TITLE>Make a Story</TITLE>
var heroGender, heroName, petType, petName;
heroGender = window.prompt('Is the hero female or male? Enter F or M', 'F');
heroName = window.prompt('What is the hero\'s name?','');
petType = window.prompt ('type of pet','');
petName = window.prompt ('the name of the pet','');
document.write ('Once upon a time there was a ');
var girl, boy;
girlOrboy = window.prompt ('is it girl or a boy? Enter girl or boy','');
girlOrboy = parsefloat ('girlOrboy');
// write out the remaining output