Return Value from Function with Return

Return Value from Function with Return


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;

  return 2 * 5;

  return 0 * 5;


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:


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


ok ill try that now thank you for the help


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


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: