Learn Introductory JavaScript by Building a Pyramid Generator - Step 55

Tell us what’s happening:

Whats wrong with my code function, someone please help
addTwoNumbers(x, y) {
return x + y;}
const 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(x, y) {
  return x + y;
}

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 + row + "\n";
}

console.log(result);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36 Edg/136.0.0.0

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 55

Your solution works from my end. Please try one of the following steps to move forward.

Click on the “Restart Step” button and force a refresh of your page with CTRL + F5 then try to paste the code in again.

or - Try the step in incognito or private mode.

or - Disable any/all extensions that interface with the freeCodeCamp website (such as Dark Mode, Ad Blockers, or Spellcheckers), and set your browser zoom level to 100%. Both of these factors can cause tests to fail erroneously.

or - Ensure your browser is up-to-date or try a different browser.

I hope one of these will work for you.

something terrible happened to the padRow function

if you complete it again, you are going to pass the step