Return II


#1

Why is it outputting the description of the function in the last line instead of the output? (see attached picture)

Link: https://www.codecademy.com/courses/learn-javascript/lessons/functions/exercises/return-ii


#2

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.

getTotal()

#3

Thanks for responding.

I believe I had that first, but this is what happens when I change that. The issue must be somewhere else?


#4

The reference error is caused by the typo in line 17. Check the name of your function.


#5

Wow, I should spellcheck more carefully next time.

Thanks, mtf!


#6

Every line, as we go… Identify objects as we type them into the source code.