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.,....
Community Answers
Sign in to open profiles and full community answers.
No community answers yet. Be the first to submit one.