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,
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.