JavaScript error in creating function5/7


#1


whats the problem? i thought i already created a function


#2

We cannot assign a value to a variable in the parameter list. orderCount is not a parameter, but a global that remains persistent through multiple calls to the function. That is by design. Write that expression as a statement inside the function body.

The other concern is the incomplete function, getSubTotal.


#3

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