Function Arguments

We'll add on to functions by describing function arguments. These make functions considerably more powerful, as they allow us to pass information into a function. The code inside functions becomes dynamic.

Arguments

Functions have more stuff built into them that makes them extremely powerful. They don’t just do the same exact thing every time. They’re dynamic.

We can write a function in a way that makes it dynamic. We can give the function a value to use when we call it. The function will then use this value when it runs its code.

Have a look at this code and we’ll discuss it afterward.

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy