8/14 stuck


#1

how do i solve 8/14 please help


#2

It's not the best idea to use the correct code written by another user. Trust me.

Post your code, we will help you correct it.

If you don't know how to create a switch get back to the 6th and 7th exercises. You will find a lot of helpful information there.


#3

i dont know how to start the code


#4



    // use a prompt() method to prompt the visitor for input
    // declare a variable called answer that holds the value of prompt

    var answer = prompt("What is your favorite?");
   
    // now create your switch statement with at least 3 cases
    
    switch(answer){
            // if user input equals games
       case 'games':
            console.log("I like games as well.");
            break; 
            // if user input equals cars
       case 'cars':
            console.log("I like cars as well.");
            break; 
       case 'girls':
            // if user input equals girls
            console.log("I like girls as well.");
            break; 
        default:
           // if there's no match, default option will execute
           console.log("Interesting!"); 
      }