Return II on JavaScript


#1

Hey everyone, my code works but I need to know why I am adding ordercount within the getTota, just for a better understandingl.


#2

why I am adding ordercount within the getTotal?

orderCount is a global variable that accumulates the total number of orders placed. Every time the takeOrder function is called, it increases the global counter by 1.


#3

Thanks a lot. Really helps


#4

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