1
0
Fork 0
freesewing/markdown/dev/reference/terms/variadic/en.md

15 lines
363 B
Markdown

---
title: Variadic
jargon: true
---
A **variadic** function is a function that accepts a variable number of arguments.
For example, JavaScript's `console.log` method is variadic:
```js
console.log('one')
console.log('one', 'two')
console.log('one', 'two', 'three')
console.log('It', 'works', 'regardless', 'of', 'how', 'many', 'arguments', 'you', 'pass')
```