parent
43c069719c
commit
e87e889a87
12 changed files with 331 additions and 20 deletions
14
markdown/dev/reference/terms/variadic/en.md
Normal file
14
markdown/dev/reference/terms/variadic/en.md
Normal file
|
@ -0,0 +1,14 @@
|
|||
---
|
||||
title: Variadic
|
||||
---
|
||||
|
||||
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', 'word', 'regardless', 'of', 'how', 'many', 'arguments', 'you', 'pass')
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue