the problem i found using the code below is that it doesn’t assign the default values
if i dont call the function by those parameters (eg. arg1 or arg2)
function func(arg1 = 1, arg2 = 2, ...restArg){
// anything
}
Blancer.com Tutorials and projects
Freelance Projects, Design and Programming Tutorials
the problem i found using the code below is that it doesn’t assign the default values
if i dont call the function by those parameters (eg. arg1 or arg2)
function func(arg1 = 1, arg2 = 2, ...restArg){
// anything
}