“You now need to pass the location argument into the update call. You pass arguments by including them within the parentheses of the function call. For example, calling myFunction with an arg argument would look like:”
myFunction(arg)
“Pass your locations array into the update call.”
If I need to pass the parameter of the function that is location to the update() function (from Step 50), why is it asked here to put as parameter the variable locations ?
here you are putting the argument that gives the value to the parameter
like
function myFunc(number) {
console.log(number)
}
this function wants to print something to the console but it can’t without knowing the value, and that happens when you call the value with an argument