JavaScript | JavaScript Functions | Question 7

Last Updated :
Discuss
Comments

function foo(x, y, z) {

return x + y + z;

}

const bar = foo.bind(null, 1);

console.log(bar(2, 3));


NaN

123

6

undefined

Share your thoughts in the comments