Problems with Return a Value from a Function with Return

Tell us what’s happening:
Dear all,

I am trying to solve this challenge of the topic : Return a Value from a function with Return,
i think the functions , variables and returns are well written but sadly i continue having
problems in this challenge, i attach the picture of my code below,
i will appreciate if i can get some support or orientation about it.
Thank you all in advance,
Kind regards,
Ivonne

Your code so far


// Example
function minusSeven(num) {
  return num - 7;
}

// Only change code below this line
function timesFive(num){
  return num*5;
}
var answer=timesFive(5);

function timesFive(num){
  return num*2;
}

var answer=timesFive(2);

function timesFive(num){
  return num*0;
}

var 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/76.0.3809.132 Safari/537.36.

Link to the challenge:

Hi
Declare the function timesFive only once,
It should return the input times five.
And you can test it or invoke it multiple time.

Exp : console.log(timesFive(5));

Should print 25.

Dear Oussama-jlassi,

I appreciate and thank you for your kind orientation,
i am trying to do it but it continues giving me the same sentence,
:frowning_face:
Here my code

You have declared the function

 timesFive(num){ return ....;}

Three different time, so javascript will considre only the laste one which is wrong
Because it return 0 * num

Dear Oussama-jlassi,

Thank you :slightly_smiling_face: i realized my mystake,
wowww i though that i needed to declare 3 times the
function , finally i made the challenge thank u again

2 Likes