Tell us what’s happening:
Hi everyone. Please help me. I can’t see where I’m making the mistake.
function addTwoNumbers (var1, var2) {
return var1 + var2;
}
const sum = addTwoNumbers(5, 10);
console.log(sum);
Your code so far
function addTwoNumbers (a, b) {
return sum
}
let a = 5
let b = 10
// User Editable Region
function addTwoNumbers (var1, var2) {
return var1 + var2;
}
const sum = addTwoNumbers(5, 10);
console.log(sum);
// User Editable Region
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:132.0) Gecko/20100101 Firefox/132.0
Challenge Information:
Learn Introductory JavaScript by Building a Pyramid Generator - Step 55