The way I'm reading it is that the speedUp function would increment the speed stored in the speed variable by the value specified for incrementing. (so 10=0+10 then 20=10+10)
The changeGear function changes the value of the the gear variable to the newValue (so from 1 to 2 and then from 2 to 3)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.