To define each of the set classes as a property of the sets object (namespace) for the module, the statement is
(a) sets = sets.AbstractEnumerableSet.extend();
(b) sets.SingletonSet = sets.AbstractEnumerableSet.extend(…);
(c) sets.SingletonSet = sets.extend(…);
(d) sets = sets.extend(…);
This question was posed to me during a job interview.
The origin of the question is Modules in JavaScript topic in portion Classes and Modules in JavaScript of JavaScript