I can’t do this in the definition of the tip itself as there is no data being passed into it. Should I be using the ‘this’ keyword somehow?
I think the problem you are having might be rooted in 3 aspects:
- JS basics.
- Functional programming.
- Declaration order.
call method is in this case a JS function method. It will assign/lend a function coming to an existing object/class from another function/object argument of the
Now, due to the order you are suggesting when declaring the methods, you might have not passed any additional functionality to the borrowing function when making the call for
It is one way. Any additional change you made over the borrower function afterwards won’t modify
tip: at that point if you want to change something related to
tip, you will have to do it over
That is the same for ANY functionality subject to a
A simple example of an implementation of a
I think this is the reason? Was that your question?