Basic JavaScript - Return a Value from a Function with Return

Tell us what’s happening:

I am very confused, on this I have put this in every which way from sunday. I have read in some posts where people say that there is a bug in it. Someone give me a hint on what I am doing wrong. Please and thank you!

Your code so far

function timesFive(5) {
  return value 25;
}


function timesFive(2) {
  return value 10;
}
function timesFive(0) {
  return value 0;
}

Your browser information:

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

Challenge Information:

Basic JavaScript - Return a Value from a Function with Return

Hi.
You have three functions. Just have one and pass on it an argument, give it a name of your choice. Multiply the argument by five and return the results. 5 shouldn’t be used as an argument.

3 Likes

thank you so much!!! You really helped me out! it was one of the functions i tried but I should have tried it with just 1

1 Like

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