The builder pattern builds a complex object in steps. The ‘components’ are an invoker, a builder and a series of sub-objects that make a composite object. While any pattern can take multiple forms, the best description I have found is in reference #3 which is what I have based this sample on.
• Make GET Call
• Review Results
The project is made up of four files.
This implementation consists of a director, a builder, and a concrete builder. For my sample, I am going to implement as follows:
• Director/Invoker – builderDriver.js
• Builder – IBuilder.js
• Concrete Builder – ConcreteBuilder.js