Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

node js function infinite parameters

function print(...args) {
  args.forEach((arg, index) => {
    console.log(arg);
  });
}

print('hello', true, new Date());
 
PREVIOUS NEXT
Tagged: #node #js #function #infinite #parameters
ADD COMMENT
Topic
Name
9+5 =