Learn basic javascript

Done all the requirements the code want but still its not working. Can someone please tell my mistake ?

Your code so far


function caseInSwitch(val) {
varanswer = "";
// Only change code below this line
 switch(val) {
    case 1: answer = "alpha";
    break;
    case 2: answer = "beta";
    break;
    case 3: answer = "gamma";
    break;
    case 4: answer = "delta";
    break;
 }
 return answer;
}

caseInSwitch(1);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36.

Challenge: Selecting from Many Options with Switch Statements

Link to the challenge:

you get the error varanswer is not defined, can you see what’s wrong?

thanks to tell my mistake