Return Value from Function with Return

Return Value from Function with Return
0

#1

Tell us what’s happening:

Your code so far


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

// Only change code below this line
function timesFive() {
  return 5 * 5;

timesFive(2) 
  return 2 * 5;

timesFive(0) 
  return 0 * 5;
}

console.log(minusSeven(10));

Your browser information:

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

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/return-a-value-from-a-function-with-return


#2

Your new timesFive function always returns 25. But what they want is for you to make it take in an argument or parameter which can be any number and then multiply it by 5.

Look back at the challenge explanation tolearn how to do that. Or just lookcarefully at the function above called minusSeven


#3

ok ill try that now thank you for the help


#4

it has come up with a syntax error under the fives at the top


#5

make sure your code is syntactically correct.

For eg. in the previous code you showed, you were missing a closing curly brace } after your function (and before the test calls).

Post your code here again, in between two lines with three back ticks like this:
```
```