Ad
  • Custom User Avatar

    Instead of the defining in the prototype, the author of the kata is defining it in the constructor.

    This means that you would have to include this.process = process; in the constructor. This is generally bad practice as each instance would contain a duplicate of the process function instead of looking up the prototype chain for it.