Learn Introductory JavaScript by Building a Pyramid Generator - Step 54

Tell us what’s happening:

I am struggling to find the solution for returning the sum of the addTwoNumbers function on step 54. I have gotten the code to return the sum but I havent been able to pass the test.
Here is my code:
function addTwoNumbers(sum) {
return 5 + 10;
}
let sum = addTwoNumbers(5 + 10);
console.log(sum);

Your code so far

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

function padRow(name) {
  return name;
}

// User Editable Region

function addTwoNumbers(sum) {
  return 5 + 10;
}
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:126.0) Gecko/20100101 Firefox/126.0

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 54

This is the issue.
When you call the function you should just give it two numbers inside the parentheses. The two values should be comma-separated.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.