@constructor
Synonyms
- @class
Syntax
@constructor [<type> <name>]
Overview
The @constructor tag marks an function as being a constructor, meant to be called with the new keyword to return an instance.
Examples
- A function that constructs Person instances.
-
/** Creates a new Person. @constructor */ Person = function() { } var p = new Person();