Does it make sense to assign default values for parameters that are located before the rest parameter in javascript?

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
    }