Can anyone help me with this?

This shows var choice is not defined but I have defined it

The variable is local to the function(). It is not defined outside which is where the return is… Hope this helps.

hey there, the variable you created should be local that only works within the code block { } of the function.
so instead of adding var to the function, you should use let instead for it to be a local variable.