JavaScript | JavaScript Functions | Question 10

Last Updated :
Discuss
Comments

What will the following code output?

JavaScript
const add = (a, b) => a + b;
console.log(add(5));


5

NaN

Error

undefined

Share your thoughts in the comments