Govur University Logo
--> --> --> -->
...

When using JSDoc to generate API documentation, what is the correct tag to document a function's return value, including its data type?



The correct JSDoc tag to document a function's return value, including its data type, is `@returns {dataType} description`. `@returns` is the primary tag indicating the function returns a value. `{dataType}` specifies the data type of the returned value, using JSDoc's type expression syntax (e.g.,....

Log in to view the answer



Redundant Elements