Use Destructuring Assignment to Assign Variables from Objects Sep 2018

AVG_TEMPERATURES is an argument of getTempofTmrw() function call.

When working with data inside a function, it’s not the argument to a function call that should be used, but the parameter inserted in the function: in this case getTempOfTmrw()

So, what is it here?

It’s up to you to find it.

Here are more explanations.

Many documentation and tutorials use the words parameters and arguments interchangeably and it’s confusing.

And here is an example that shows you the difference between the two:

function myFunction(parameter) { 
/* parameter gets its value from argument variable 
passed to myFunction() call. */

/* inside a function, the variable parameter 
should be used, not argument. */

/* i.e. You should not use argument variable inside the function */

console.log(parameter) /* output: This is an argument when 
it is passed into myFunction call, and parameter 
when used inside the function */
}

...

var argument = "This is an argument when passed into 
myFunction call, and parameter when used inside the function.";

myFunction(argument);