Create a copy of t06_conditionals.js naming it t06_conditionals_ext_b.js
b) Create a program that does the following:
Replace asking the user age with asking the user to select their favourite movie genre (type), from the list below:
action.
comedy.
horror.
sci-fi.
Switch (use switch & case statements) between these cases AND use ONE alert statement to display a message that states what the best movie for that genre is:
"The best movie is The Dark Knight"
"The best movie is Mr Bean"
"The best movie is The Shinning"
"The best movie is Star Wars"
If the user's reply is not one of the listed genres , display "cant say as your reply was invalid"
ITERATIVE DEVELOPMENT:
Documenting the use of:
if/if else/else statements
a switch statement
Then explaining why you used one over the other is a good example of Iterative Development.