We will revisit the examples in the folder
oop-underscore from the source code for this chapter and adapt them to use standalone functions instead of object methods:
Because we want to preserve the existing functionality, we will leave the test specifications unchanged together with the code that displays the example output. First of all, we will move the validation logic into a separate
validations.js file. The object constructor functions for
Client are validating the argument's length and we will ...