Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

call function add parameter javascript

function a(...args){
  b(...args);
  b(6, ...args, 8) // You can even add more elements
}
function b(){
  console.log(arguments)
}

a(1, 2, 3)
 Run code snippet
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #call #function #add #parameter #javascript
ADD COMMENT
Topic
Name
4+2 =