I have no idea what I’m doing wrong here, it is showing the correct output in the console, but it seems to want a different process.

I have defined sum, I have put the numbers 5 and 10 in both addTwoNumbers() and in const sum = (5 + 10).

```
function addTwoNumbers(sum) {
return sum;
}
const sum = addTwoNumbers(5 + 10);
console.log(sum);
```

I’m missing something but I don’t know what it could be.

https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures-v8/learn-introductory-javascript-by-building-a-pyramid-generator/step-55

hi there,

please post a link to the challenge so we can read it with you.

In the meantime, the challenge instructions mentioned that the new function should take how many parameters? (compare that to how many you have )

Ok, I added the link.

I have tried it with both parameters, I think I did it the right way.

The code I have here is the closest I’ve gotten to the right solution.

but the code you have here has only 1 parameter?

They want the function to have 2.

Declare a function named `addTwoNumbers`

. This function should take two arguments and return the sum of those two arguments.

Ok, I got it. I was thinking that sum was supposed to go in function addTwoNumbers(sum) and in return sum, I didn’t realize it was supposed to be num1, num2. Thank you!

1 Like