How does this happen, and what does this error mean?


#1

Hi Codecademy Community, I have no idea how I’m wrong with what I typed so if someone could help that would be amazing! This is the code.

If someone could explain what is wrong, that would be great. Thanks!


#2
return getSubTotal * 7.5

The function needs to be invoked on orderCount.


Eg.

 > const foo = bar => bar * 5;
=> undefined
 > console.log(foo)
 [Function]
=> undefined
 > console.log(foo.toString())
 bar => bar * 5
=> undefined
 > console.log(foo(5))
 25
=> undefined

#3

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