Basic JavaScript - Return a Value from a Function with Return

why my code is geeting an error kindly me.

function timesfive(a){
  return a*5;
}
timesfive(5);
timesfive(2);
timesfive(0);

Your browser information:

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

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

Link to the challenge:

“Create a function timesFive…”

What is the name of your function? Remember, case matters.

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