Not sure how to fix the error


#1


var answer = prompt("whats your favorite video!");

switch(answer) {
  case 'Nintedo':
    console.log("Great!");
    break;
  case 'Sony:
    console.log("Good");
    break;
  case 'Microsoft':
    console.log("ok");
    break;
  default:
    console.log("PC master race");  
}

im not sure how to fix the error


#2

here:

case 'Sony:

you forgot an apostrophe (') to close your string.


#3

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