| tag | class | |
|---|---|---|
| tags | blockTags | |
| description | This function is intended to be called with the "new" keyword. | |
| synonyms |
|
|
| related |
|
@class [<type> <name>]
The @class tag marks a function as being a constructor, meant to be called with the new keyword to return an instance.
::: example "A function that constructs Person instances."
/**
* Creates a new Person.
* @class
*/
function Person() {
}
var p = new Person();:::