When it’s not a constructor function, it’s called a factory function.
Common Misconceptions About Inheritance in JavaScript
Eric Elliott
90338

A factory function is a very specific concept that dynamically returns objects of many different prototypes (or for other languages, classes) — see https://en.wikipedia.org/wiki/Factory_(object-oriented_programming) which has a bunch of references. If the function consistently returns objects of the same __proto__ then it’s simply a function that makes objects.