More practice with switch on js


#1

var answer = prompt("What kind of music is best to strip to?");

switch(answer) {
case 'hip hop':
console.log("Yes I think this is the ideal choice");
break;
case 'classic rock':
console.log("This appears to be a popular choice, but not one I prefer");
break;
case 'classical':
console.log("Not something I have experienced but I could really get behind some Debussy for the pussy");
break;
default:
console.log("Hmmm I hadn't thought about that, I could see that being a possibility");
}


#2

@pjralph,
And did you have a question ??