8. all on your own


#1



it shows that I have syntax error.....and I can't find what's wrong :frowning:


var age=prompt("How old are you?");

switch(age){
    case'13':
    console.log("too young");
    break;
    case'18':
    console.log(" you are an adult now!");
    break;
    case'66':
    console.log("That's old!");
    break;
    case'98':
    console.log("cool");
    break;
    default:
    console.log("wow!");
    
    }


#2

Hi
your code is correct and works for me. I would suggest you

0) to put a white space between case and the value after.

If 0) does not work, then
1) to save your code somewhere and reset your exercise then copy back your code and test again

if 1) does not work, then
2) exit codecademy, delete your history/cookies and try again

if 2) does not work, then
3) change to another web browser

Cheerio


#3

thank you so much Cheerio :wink:
it worked with 1) !