Lesson 6/step - Return II - help


#1

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?


#2

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


#3

Nope. Tried that.

https://www.codecademy.com/courses/learn-javascript-functions/lessons/functions/exercises/return-ii?action=resume_content_item&course_redirect=introduction-to-javascript


#4

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


#5

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


#6

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