Learn Introductory JavaScript by Building a Pyramid Generator - Step 55

Tell us what’s happening:

even though it says 15, it is not accepting my code.

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 (Linux; Android 11; KFSNWI) AppleWebKit/537.36 (KHTML, like Gecko) Silk/126.6.2 like Chrome/126.0.6478.238 Safari/537.36

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 55

This function doesn’t have two arguments. It only has one

what would be an example of two arguments?

The example given in this Step’s instructions is one

Sorry I see what you mean, I think.
although I am still confused…
function addTwoNumbers(sum, sum2) {

return 3 + 6;

}

const sum = addTwoNumbers(5 + 10)

console.log(sum);

Here you are not using the two arguments

1 Like

Thank you for your help :grin:

1 Like