Why is it outputting the description of the function in the last line instead of the output? (see attached picture)
LIne 25 does not invoke the getTotal function. It is currently logging the string representaition of the function object, but should be logging the return value.
To invoke a function, use () after the function name.
Thanks for responding.
I believe I had that first, but this is what happens when I change that. The issue must be somewhere else?
The reference error is caused by the typo in line 17. Check the name of your function.
Wow, I should spellcheck more carefully next time.
Every line, as we go… Identify objects as we type them into the source code.