Answers for "javascript function with array parameter"

2

javascript function with array parameter

const args = ['test0','test1','test2'];
function call_me(param1, param2, param3){
  //
}
call_me.apply(this, args);
Posted by: Guest on July-18-2020
-1

make a parameter array in js

var x = [ 'p0', 'p1', 'p2' ]; 
call_me(x);

function call_me(params) {
  for (i=0; i<params.length; i++) {
    alert(params[i])
  }
}
Posted by: Guest on June-22-2020

Code answers related to "javascript function with array parameter"

Code answers related to "Javascript"

Browse Popular Code Answers by Language