SyntaxFix
Write A Post
Hire A Developer
Questions
Yes you can pass variable no. of arguments to a function. You can use apply to achieve this.
apply
E.g.:
var arr = ["Hi","How","are","you"]; function applyTest(){ var arg = arguments.length; console.log(arg); } applyTest.apply(null,arr);