Learn Introductory JavaScript by Building a Pyramid Generator - Step 55

Tell us what’s happening:

Hi everyone. Please help me. I can’t see where I’m making the mistake.
function addTwoNumbers (var1, var2) {
return var1 + var2;
}

const sum = addTwoNumbers(5, 10);
console.log(sum);

Your code so far

function addTwoNumbers (a, b) {
  return sum

}
let a = 5
let b = 10

// User Editable Region

function addTwoNumbers (var1, var2) {
    return var1 + var2;
}

const sum = addTwoNumbers(5, 10);
console.log(sum);


// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:132.0) Gecko/20100101 Firefox/132.0

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 55

Try removing the space after addTwoNumbers

Hi, I tried removing the space but still not working.

what is this one? did you accidentally left it in? You have two functions with the same name

Thank you for your help.
Now it’s solved. For some how there were two functions. One of them was hidden as last tasks.
I just deleted it and everything was corrected.
Thank you for your advice.