Can't find error in the switch statement

I keeping getting an error in this switch statement but I can’t figure out what I’m doing wrong… What am I missing?

let dollars = 4;
switch (dollars) {
    case: 1
    console.log(`Only ${dollars} dollars`);
    break;
    case: 2
    console.log(`well, ${dollars} dollars`);
    break;
    case: 3
    console.log(`nice, ${dollars} dollars`);
    break;
    case: 4
    console.log(`Wow, ${dollars} dollars`);
    break;
}

Try case 1: with column after the value

2 Likes

You have

case: 1

when you want

case 1:
1 Like