I’m almost done with my project. I did it slightly different then the what was asked but nevertheless I have it written up but I have a syntax error that doesn’t seem to make sense to me. This is the git link: https://github.com/berrysm91/Mixed-Messages.git
here is the relevant code:
var movieSelect = math.Floor(math.Random() * array.lengh);
const movieReturn = switch(moviePick) {
case 'Top Gun':
return topChar
break;
case 'Anchorman':
return anchorChar
break;
case 'Caddyshack':
return caddyChar
break;
case 'Fast Times at Ridgemont High':
return fastChar
break;
};
it shows the syntax error at switch but I can’t understand why