The error speaks for itself. You want to execute a function. However, what you are trying to execute is evaluated to as
undefined. This will throw the following error as it’s basically the same as saying
undefined(); And since
undefined is a reserved keyword, it cannot be called as a function.
- Access exclusive interactive lessons
- Unlimited access to hundreds of tutorials
- Remove ads to learn without distractions