js provide one kwarg code example
Example: *args python javascript equivalent
//spread operator
a = [1, 2, 3]
function printArgs(args) {
console.log(...args)
}
printArgs(a)
//=> 1 2 3
//spread operator
a = [1, 2, 3]
function printArgs(args) {
console.log(...args)
}
printArgs(a)
//=> 1 2 3