Question: If your add function / method works properly and returns it's own object when done - you can now do something like this: console.log (

If your add function / method works properly and returns it's own object when done - you can now do something like this: console.log((new Club("computer")).add("Bart").add("Lisa").members ). This is called chaining.
After each method call to add, it returns the same object again which in turn can be used again. This is called chaining. Every 10 years it becomes a new fad all over again. In C++ then back again with javascript with the popularity of the jQuery library.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!