The difference between parameters and arguments in functions

So as the title states, what is the difference?

Parameters are basically placeholders waiting to receive arguments

function myFunction(parameter1, parameter2) {
 // do stuff
}

and then when you call the function, you give it arguments

myFunction(1, 2);

The arguments will be used within the function, where I wrote // do stuff

2 Likes

Thank you, that’s made it much clearer tot me

2 Likes

Happy to help! Enjoy the course :wink:

1 Like