8/14 stuck


how do i solve 8/14 please help


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.


i dont know how to start the code


    // 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
            // if user input equals games
       case 'games':
            console.log("I like games as well.");
            // if user input equals cars
       case 'cars':
            console.log("I like cars as well.");
       case 'girls':
            // if user input equals girls
            console.log("I like girls as well.");
           // if there's no match, default option will execute