Hi, Ive managed to pass the lesson but i just wondering why we have to create the var MyBalanceMethod just to then create the variable "MyBalance".
In my head it just seems that john.askTeller = myBalanceMethod = myBalance, so why do we need to middle man "myBalanceMethod"?
I did try just using console.log(myBalanceMethod) but it just return as function.
If anyone can just quickly explain this so i can fully get my head around it that would be great.
var myBalanceMethod = john.askTeller(); var myBalance = myBalanceMethod(); console.log(myBalance);