Yep it is - john.askTeller()
returns the function returnBalance
that you then invoke with ()
.
returnBalance
is a function scoped to the Person
constructor function, but it is made available outside of this scope when it is returned from the askTeller
function call.