Learn Introductory JavaScript by Building a Pyramid Generator - Step 55

Tell us what’s happening:

My addTwoNumbers function returns the sum of 2 numbers but its saying that I do not do that.
My piece of code is:
function addTwoNumbers(sum){
return sum;
}
let sum = addTwoNumbers( 5 + 10);
console.log(sum):
What am i doing incorrectly?

Your code so far

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

function padRow(name) {
  return name;
}

// User Editable Region

function addTwoNumbers(sum){
return sum;
}
let 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; rv:128.0) Gecko/20100101 Firefox/128.0

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 55

This is passing the sum of two numbers to the function, which is not the same thing.

Your function just returns exactly what’s passed to it, it doesn’t add anything.