+ 1

How can I update the bank balance? This is an excersice of Head First Learn to Code

https://code.sololearn.com/cEB6904IZ0xm/?ref=app balance is a global variable and a parameter thank you

30th Jul 2018, 11:10 PM
Caty Zurano
Caty Zurano - avatar
2 Respuestas
+ 1
You gotta access the global balance like you did with cameraon and rename the parameter balance to avoid ambiguity https://code.sololearn.com/cVkc4rl0CBuw/?ref=app
30th Jul 2018, 11:30 PM
voidneo
+ 1
thanks noname and Jay! !
30th Jul 2018, 11:52 PM
Caty Zurano
Caty Zurano - avatar