Return function lesson question

I have a question, in the lesson

Is it possible to finish the lesson without defining a variable?
I’ve tried only by calling the function and then using console.log but it wouldn’t let me complete it.

The code I completed the lesson with

function timesFive(num) {
  return num * 5;
const answer = timesFive(7);

the code I meant in my question

function timesFive(num) {
  return num * 5;

it says num isn’t defined. is it because Argument =/= definement?
One can only define through a variable?
Ty :slight_smile:

Yeah, the variable num is only defined inside of the scope (the {}s) of the function timesFive.

1 Like

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