Basic JavaScript - Return a Value from a Function with Return

Tell us what’s happening:
Basically, I tried to copy the return of 25 but I saw it was wrong, I think I got an understanding of the code but I don’t know what to put for the other two’s timesFive spot, I don’t really know how to explain it and it might be cryptid but I think you’ll see my problem
Your code so far

function timesFive(num) {

return 5 * 5;

}

console.log(timesFive(25));

function timesTwo(two){
return 2 * 5;
}

console.log(timesTwo(10));

function timesZero(zero){
return 0*5;
}

console.log(timesZero(0))

Your browser information:

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

Challenge: Basic JavaScript - Return a Value from a Function with Return

Link to the challenge:

You are asked to create one function, timesFive, which accepts an argument and returns that argument, multiplied by 5.

The example in the challenge description demonstrates the syntax for doing this:

function plusThree(num) {
  return num + 3;
}

Try to use the same syntax for your function but amend the return statement so that it multiplies the argument (num) by 5 instead.

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