Build a Calculator - Step 3

Tell us what’s happening:

It always tells me that I should call the function in the console.log function, but it that’s what im doing.

Your code so far

function addTwoAndSeven() {
  return 2 + 7;

// User Editable Region

}

console.log(addTwoAndSeven);

// 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/143.0.0.0 Safari/537.36

Challenge Information:

Build a Calculator - Step 3

I even put the code like this but it doesn’t work

function addTwoAndSeven() {

return 2 + 7;

}

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

Does the function declaration have parameters? Look again at the example for how to call a function. The code you first posted is missing something.

I already found the solution the code should be like this

removed

Glad you got it.

Please don’t share solution code on the forum

hello there, im facing the same problem, could you pls help me out?

hi there, how did you resolve that issue?

please create your own topic for your question

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Help button located on the challenge.

The Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.