Don't know what I did wrong #7 More practice with switch


#1


I am stuck on 7/14 More practice with switch on More on Control Flow in JS.



I thought I was doing this switch right, but it says my syntax is incorrect. Can anyone help me out? Thanks.


var bands = prompt("What's your favorite band?", "Type your favorite band here.");

switch(bands) {
  case 'twenty one pilots':
    console.log("I also love them, fellow clique member!);
    break;
  case 'Panic! at the Disco':
    console.log("I agree, Brendon is pretty great!");
    break;
  // Add your code here!
  default: 
    console.log("I've never heard of that band, I'll have to look them up!");
}


#2

this line:

console.log("I also love them, fellow clique member!);

a quotation mark (") is missing to mark the end of a string


#3

Oooh, thanks so much!


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.