I tried multiple solutions but it won’t work.
I actually don’t know why, no clue.
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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36 OPR/111.0.0.0
Challenge Information:
Learn Introductory JavaScript by Building a Pyramid Generator - Step 55
the function addTwoNumbers should have two arguments, in this case 5 and 10.
So when I call it, it should output those numbers.
This is my progress right now:
It is great that you solved the challenge, but we are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.
No thats the thing, I didnt pass. Its not the solution
Update: I open visual studio code and my code works but there. But when I try to submit and complete it on here (FreeCodeCamp) it tells me that its wrong. What should i do?