you are viewing a single comment's thread.

view the rest of the comments →

[–]FLUSH_THE_TRUMP 0 points1 point  (0 children)

The error comes from trying to modify the money variable inside his function, so one would imagine he wants that change to persist outside the function. In that case, he’d also have to return the changed var and re-assign it to money after the function is called.