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

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

#1

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?


[solved] Are vars defined in Function definitions Global or Local?
#2

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


#3

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


#4

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


#5

Perfect. Tx @ArielLeslie