Default Function Parameters

We'll see how the new behavior of default function parameters really works. We'll explore its capabilities and see how it helps us reduce the amount of code we need to write.

Default Parameters

The old way to check for function parameters was to do so manually in the function body. If we had to make sure a parameter wasn’t undefined, this is something we’d do.

Get hands-on with 1000+ tech skills courses.