Build a Calculator - Step 3

Tell us what’s happening:

Pls help. What is it I am not getting right? I’ve called the addTwoAndSeven function inside the console.log and yet I am not getting it right.

Your code so far

function addTwoAndSeven() {
  return 2 + 7;
}

// User Editable Region

console.log(addTwoAndSeven(2,7));

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36 Edg/144.0.0.0

Challenge Information:

Build a Calculator - Step 3

Hi. How many parameters does the addTwoAndSeven function take?

2 parameters, which is Two and Seven.

please review what parameters are, you have not written any in the function definition

1 Like

function addTwoAndSeven() {

return 2 + 7;

}

console.log(addTwoAndSeven(2, 7));

//you shoud add space between 2 and 7 , like this (2, 7) not this (2,7)

hi @egulbis90

It is great that you want to help, but instead of providing code, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge. How to Help Someone with Their Code Using the Socratic Method

Please also make sure you understand what the issue is, your suggestion is not correct.