Learn Introductory JavaScript by Building a Pyramid Generator

Step 55: Confused on how to return a function to create a sum variable.

My code:

function addTwoNumbers(a,b) {

return a + b;

}

const sum = addTwoNumbers(5,10);

console.log(sum);

Hi there. Copy and paste your full code here and also post a link to the challenge.

make sure you do not have syntax errors before that