

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Does JavaScript have a standard for commenting functions?
For commenting functions, you can use the following jsdoc style documentation,
/** * Adds two numbers * @param {Number} a * @param {Number} b * @return {Number} sum */ function sum(a,b) { return a + b; }
- Related Questions & Answers
- What is a standard for commenting a function in JavaScript?
- How many values does javascript have for nothing?
- Python Standard operators as functions
- What advantages does jQuery have over JavaScript?
- Can a C++ virtual functions have default parameters?
- Does Python have a ternary conditional operator?
- Can Python functions run in html as javascript does?
- MongoDB query for documents whose array elements does not have a specific value
- Why C++ does not have a virtual constructor?
- Does a constructor have a return type in Java?
- What is a typical use case for JavaScript anonymous functions?
- Does Akshay Kumar have dual citizenship?
- Does JavaScript have a method to replace part of a string without creating a new string?
- Does a favicon have to be 32x32 or 16x16?
- Does content writing have a bright future in India?
Advertisements