What's wrong with this code?

We can't access discount outside of the function, since it has a local scopeThere's nothing wrong with the codeWe can't create variables inside functions

We can't access discount outside of the function, since it has a local scope.