Paste your JavaScript code to generate professional documentation in Markdown.
Documentation should include clear function names, parameter descriptions with types, return value details, and usage examples. Successful open-source projects like Axios, React, Jest, and Node.js use consistent inline comments, JSDoc-style tags, and provide practical examples.
1. Paste JavaScript function code into the text area below.
2. Click "Generate Documentation" to see the auto-generated doc.
3. Edit the generated description as needed (marked with comments).
4. Copy to clipboard or download as a .md file.
Example Input:
function add(a, b) {
return a + b;
}
Example Output:
## add()
**Description:** Adds two numbers together.
**Parameters:**
- `a` (number)
- `b` (number)
**Returns:** number - The sum of a and b.
**Example usage:**
```javascript
const result = add(1, 2);
```