Lesson 6/step - Return II - help

For step 2, I’m inputting

const getTax = (orderCount) => {
 return getSubTotal(orderCount) * 0.06;

but the system is still asking if I returned the result in the getTax function. I’ve spent a week trying to figure this out.

Is there a bug that I’m not aware of?

missing } to close the function? Please share full code and exercise url

Nope. Tried that.


See? Full code is really valuable. I know see the error, which was impossible in the code you posted when you created this topic

you nested the getTax function inside the getSubTotal function, you shouldn’t have done that. The getTax function should be outside/after the getSubTotal function

1 Like

Yay thanks! Thought I would be redoing this lesson for all eternity.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.