<script type="text/javascript"> function invalidInput() { //Function for invalid input return alert('Sorry, I do not recognise that input.'); //Invalid input alert } function askQuestions(choice) { //Function for asking questions do { //Do while loop choice = prompt('Ask me about the following: 1. Favourite film. 2. Favourite actor. 3. Go back.'); //Questions prompt switch (choice) { //Switch case statement case '1': alert('My favourite film is The Net, I like films about computers.'); break; case '2': alert('My favourite actor is Aki Ross, the first computer generated actress.'); break; case '3': break; case '0': break; default: incorrect = invalidInput(); //Invoke invalid input function } } while (choice.length