Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 387 Bytes

File metadata and controls

15 lines (11 loc) · 387 Bytes

@class Back

This tag is the same with @constructor

The tag @class, a.k.a @constructor is mainly used for marking a function as being a constructor, which means that callers need to use new statement to create an instance of such a method.

/**
* a constructor for Person objects
* @constructor
*/
function Person () {}

const person = new Person();