More Practice with SWITCH!


#1

This is working!

var answer = prompt("Which type of tea you prefer?");

switch(answer) {
case 'green':
console.log("We have green tea, just a minute");
break;
case 'black':
console.log("I like your choice here you go!");
break;
case 'red':
console.log("But it should take a bit");
break;
default:
console.log("I will try to find " + answer + " tea!");
// Add your code here!

}