> For the complete documentation index, see [llms.txt](https://asad-razvi.gitbook.io/javascript-cookbook/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://asad-razvi.gitbook.io/javascript-cookbook/function-recipes/how-can-i-find-out-the-length-of-a-functions-parameter-list.md).

# How can I find out the length of a function's parameter list?

```javascript
// How to find out length of a function's parameter list
const add = (x, y) => x + y
console.log(`The add() function takes ${add.length} arguments`)
```
