Simple syntax error or fundamental flaw to my approach?

![2021-03-04 Defining my problem|800x468](upload://wlvZuRCqQB5l92k0wcS3kSMVYAs.png) 

I’m still learning some of the basics of object oriented programming. Trying to practice some basic concepts and I can’t wrap my head around this one. This might be a simple syntax fix (add a “this” over on line x), or a huge gap in my understanding of how javascript works.

If I have a method that creates a top status banner with things like health and money, and in my “main area” I have some button to spend money, I’m having trouble passing the variable of the displayed money in the top status banner to update with the new money value. I’ve attached this image that strips down the code to the bare essentials.

Any assistance on how I can have the updateFunds() apply an update to the variable displaycurrentFunds located in topBannerDisplay() would be most appreciated.

1 Like

@Milton - thank you for pointing me to a clearly worded solution. I really appreciate it.