The beginning of the switch statement checks the value of ‘randomNumber’ and compares it to each case. So, case only needs to be the value being compared to randomNumber
i.e.
case 1:
Feel free to take a look at the Codecademy Docs on switch statements for more information!
As @kirativewd said your syntax is a little off. Hopefully that makes sense! Your question brings up another point though that is interesting. Which is, how does the switch statement perform it’s comparison?
It looks like it does a strict comparison. So it automatically performs === for you. This means the values passed into case not only have to equal the value of randomNumber but also have the same type. So for example let’s say, for whatever reason, your randomNumber was returning numbers as strings, but you are putting numbers in your case statement. This would be a problem at compilation time.