What is the difference between using arguments instead of formal parameters and using formal parameters directly... rest parameters?
In most scenarios...rest can work instead of arguments, but it cannot work in some special scenarios. For specific details, you can check MDN
In most scenarios...rest can work instead of arguments, but it cannot work in some special scenarios. For specific details, you can check MDN