The methods used in this test are:
- Factory method using function with arguments and closures, see this link for more informations
- Prototype method using prototype inheritance, as the same as Javascript does for methods like push for arrays, see this link for more informations
- Class method using the keyword class that creates a special function, see this link for more informations
- Factory method with Object.assign + Object.create, another method but similar to the first but different in terms of performance, see this link for more informations