I don’t know what I’m supposed to do. I don’t understand
Your code so far
const character = "#";
const count = 8;
const rows = [];
function padRow(name) {
return name;
}
// User Editable Region
function addTwoNumbers(a;b);{
return sum
}
const 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/127.0.0.0 Safari/537.36
Challenge Information:
Learn Introductory JavaScript by Building a Pyramid Generator - Step 55
You have a function with parameters a and b. And your function is returning sum variable.
After that you declared the variable sum using const keyword.
Also your function have semicolon between the a and b and after that.
Recheck the instructions and compaire your code with that.
function sumOfTwoNumbers(param1, param2) {
// return the sum of your both param
}
/* Declare the variable sum and assign it the value of the above function call with two numbers as a arguments */