I’m a little confused on why ever use factory functions over classes or vice versa, it seems like classes is a better way since it looks a lot more organized.
One of the key advantages of factory functions is their ‘one-off’ convenience. They can be created, used and then discarded while leaving a minuscule footprint, if any at all.
1 Like