Excerpt from the book: "The default value is computed on demand, only when it is actually needed:
const log = console.log.bind(console);
function g(x=log('x'), y=log('y')) {return 'DONE'}
Why when I give one actual parameter to this function it gives return of y, when two arguments it just returns 'DONE', but if I don;t give it any act. parameters it will yield x, y and return statement?
>> g(0)
y
"DONE"
>> g()
x
y
'DONE'
>> g(1)
y
'DONE'
g(1, 2)
'DONE'