KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I want to create a function in javascript with a variable amount of arguments. The next example is how I want to call this function: myFunction(1,2); myFunction(1,2,3); myFunction(1,2,3,4); myFunction(1,2,3,4,5); myFunction(1,2,3,4,5,6); Anyone knows how to define this function?
Tags (comma-separated)
Save Edits
Cancel