Functions 5.5 return orderCount


#1

I do not understand this part of Exercsice 5 step 5 Functions:

On the last line of your program, after the takeOrder function calls, call the getSubTotal function inside a console.log statement.

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

How can I call a function inside a console.log statement: if i do

console.log(getSubTotal(orderCount));

it shows me error...


#2

What error do you receive, and please post all your code for this specific exercise.


#3

Oh i tried to remake the code and now it works, seems that was only some syntax problem THANKS


#4

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