Closed mikegowen closed 6 years ago
Also, separately. I'm not sure I understand the need for the empty property. Why not just create them normally?
let newGroup = new PGroup(collection);
Also, could you do this instead of the way you define the empty property?
static get empty() {
return new PGroup;
}
The property is added to the constructor function. Whether that is the same as the "class" is another discussion, but "constructor" is more specific in this case.
Why not just create them normally?
You could, but that's not the interface the exercise is asking you to implement.
Shouldn't this...
be this...
I may be totally misunderstanding. If so, ignore.