What's wrong with this code?

There's nothing wrong with this codeThe variables are wrongThe parameter doesn't have var before itThe parameter isn't being passed correctly

There's nothing wrong with this code.