Learn Introductory JavaScript by Building a Pyramid Generator - Step 55

Tell us what’s happening:

can’t figure this out

Your code so far


function addTwoNumbers (a, b) {
  return sum

}
let a = 5
let b = 10
const sum = (a+b)

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

Hi there!

You have created the function correctly. Remove space after addTwoNumbers

But you need to return the sum of the two parameters of your function.

That is not valid Remove it.

Here you need to assign function addTwoNumbers call with two numbers to that sum constant.

Thank you! I solved the step shortly after posting this thanks to one of your comments in another post