8. All on your own


#1

What have i done wrong?

var answer = prompt("What day is it?");

switch(answer) {

        case 'Monday':
        console.log ("Nope!")
        break;

        case 'Tuesday':
        console.log ("Nope!")
        break;

        case 'Wednesday'
        console.log ("Nope!")
        break;

        case 'Thursday'
        console.log ("Yes!")
        break;

        default: 
        console.log ("What THE")
        break;

}


#2

Never mind figured it out, sorry


#3

For those wondering what the solution was, it was to remove the spaces between .log and (" in each case.


#4

naa ! its not that he just forgot to put ':' (separator colon/sign) after 'Wednesday' and 'Thursday' !!!


#5

Actually yes, you're half right.

It is also what I said,

Because it wouldn't work without both of our solutions, so thanks for completing mine :stuck_out_tongue:


#6

Just want to say, lightningfast125 was correct :smiley: just had to put the ":" in, nothing else was incorrect, thanks for stopping by though guys!


#7

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