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