I have an object like this:
function Person() {}
What would you call it other than an object? Obviously it is not a class, but what is it? I am looking for a term that is not an object, because I want to specifically highlight the fact that you can create a new instance of it.
"function Person() {}
" is a constructor function for a type. A value of new Person()
would be an instance (or object) of type Person.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With