All on your own


#1

https://www.codecademy.com/en/courses/javascript-beginner-en-qDwp0/1/4?curriculum_id=506324b3a7dffd00020bf661


Good morning. Kindly someone tell me what is wrong with my code:

var answer = prompt("What is dream car?");

switch(answer) {
  case 'subaru':
    console.log("Thats a good one");
    break;
    case 'fortuner':
    console.log("Thats a better one");
    break;
    case 'landcruiser':
    console.log("This is the best");
    break;
    default:
    console.log("White");


#2

I will appreciate, thanks.


#3

a } is missing to close the switch statement


#4

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