Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 511 Bytes

File metadata and controls

36 lines (26 loc) · 511 Bytes
tag class
tags blockTags
description This function is intended to be called with the "new" keyword.
synonyms
constructor
related
/tags-constructs

Syntax

@class [<type> <name>]

Overview

The @class tag marks a function as being a constructor, meant to be called with the new keyword to return an instance.

Examples

::: example "A function that constructs Person instances."

/**
 * Creates a new Person.
 * @class
 */
function Person() {
}

var p = new Person();

:::