Answers for "js unspecified parameters"

1

js unspecified parameters

function my_log(...args) {
     // args is an Array
     console.log(args);
     // You can pass this array as parameters to another function
     console.log(...args);
}
Posted by: Guest on October-24-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language