I need help here. I am making an MMORPG. Please help!
Your code so far
const character = "#";
const count = 8;
const rows = [];
function padRow(name) {
return name;
}
// User Editable Region
const sum;
function addTwoNumbers(5, 10);
con
// 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/137.0.0.0 Safari/537.36
Challenge Information:
Learn Introductory JavaScript by Building a Pyramid Generator - Step 55
Declare a sum variable and assign it the value of calling your addTwoNumbers function
If you are going to declare a variable and assign the result returned by calling the function, would you declare the variable inside or outside the function?
Declare a sum variable and assign it the value of calling your addTwoNumbers function with 5 and 10 as the arguments.
You are passing “sum” as an argument to the function.
let this = 0; //declare a variable and assign it 0
console.log() //calling the console.log() function
console.log("this", 52) //calling the console.log() function with arguments
let this = console.log("this", 52) //putting it all together
Try to follow the instruction using these examples of syntax as a guide. Please let us know if you have a question (don’t just post code)
I have been coding in PHP & MySQLi, it was a dangerous game about breeding cats. Guess how I feel right now? The question remains. I still wonder how to finish this exercise.