JSFiddle - React, Tailwind, and code Playground

JavaScript

function test(a = foo(arguments)) {
    console.log(a, typeof a);
}

function foo(args) {
    console.log('foo', args)
}
console.log(test(undefined, undefined, undefined));