3 ms·JavaScript Factory Functions vs. Constructor Functions vs. Classes4 points by ericelliott 10y ago