i dont understand this ex

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**
function timesFive(num) {
return num *=5;
}

const answer = timesFive(5);
function timesFive(nu) {
return nu *=5;
}

const answer = timesFive(2);
function timesFive(um) {
return um *=1;
}

const answer = timesFive(0);
  **Your browser information:**

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

Challenge: Return a Value from a Function with Return

Link to the challenge:

HI @Thanhfx !

Welcome to the forum!

You don’t need all of this code on the page.
The correct answer is the code you wrote at the top of page which is 3 lines.

You can delete all of this stuff here

Here is why you should delete it.

Once a constant variable is declared and assigned a value, you cannot assign a new value or create multiple const variables by the same name.
You wrote const answer several times which is incorrect.

You don’t need to create a variable of answer at all here.

You have already created a function called timesFive at the top of the page.
What the tests are doing being the scenes are calling the function for you and passing in those arguments of 5,2,0.

That is why you don’t need to do all of this extra stuff here

Hope that helps!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.