[solved] Is celsius declared in the begining of the function?

See here?

function celsiusToF(celsius) {
   var fahrenheit;
        yada yada;
  return fahrenheit;
  }
celsius(30)

Is the variable celsius being declared in the argument of the function (1st line)?
Am I saying that right lol?

celsius is an argument variable. Whatever is passed into the function (30 in the example code above) will be celsius in the function.

I get that.
But vars have to be declared before they’re used. So that must mean it’s being declared there. Right?

Argument variables are declared in the function definition. The word var isn’t used because argument variables are always scoped to the function.

1 Like

Perfect. Tx @ArielLeslie