Function Parameters

Why do we use empty parameters when creating a funtion and what does it do?

Functions allow us to isolate certain logic so we don’t have to repeat this logic, keeping our code DRY.

by using parameters, we can have slight variations within the function based on the argument passed when we call the function

parameters get there value from arguments at function call.

1 Like