
Explain about Variadic functions?

When you use variadic function in Javascript, an indefinite number of parameters can be passed onto the function. Inturn the function can access the parameters through formal parameters and local arguments. Variadic functions are much successful when you need to assign different number of parameters to functions.
<script type="text/javascript">
function printSpaced() {
for (var i = 0; i < arguments.length; i++) {
document.write(arguments[i] + " ");
}
}
</script>
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.