Learn Introductory JavaScript by Building a Pyramid Generator - Step 55

Tell us what’s happening:

I’m new to javascript, looking at the output it is returning 15 as the sum, so I’m not sure why this is not passing. I must be doing it in a weird way, but I’m not sure what I’m doing wrong.

Your code so far

const character = "#";
const count = 8;
const rows = [];

function padRow(name) {
  return name;
}

// User Editable Region

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

// User Editable Region


const call = padRow("CamperChan");
console.log(call);


for (let i = 0; i < count; i = i + 1) {
  rows.push(character.repeat(i + 1))
}

let result = ""

for (const row of rows) {
  result = result + "\n" + row;
}

console.log(result);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 55

Hi and welcome to the forum.

How many parameters does your addTwoNumbers function need?
How many does the step say it should take?

Try to answer these two questions.
Also do not write 5 + 10. To pass 2 numbers use (5, 10)

edit: also to define a function with more than 1 parameter, use a comma to separate the parameters like:
function myFunction( the1st, the2nd, the3rd) {