Learn Vue JS course Learn Javascript and Vue JS Learn VueJS course Learn VueJS Tutorial

Master Vue.js with Vue School Premium

$25 / month

Modern JavaScript: ES6 and beyond!

Master Vue.js with Vue School Premium

$25 / month

Learn how to set default parameter values in JavaScript functions

Prior to ES6, it wasn't possible to set default parameter values when defining our functions in JavaScript. In this lesson, we learn how to create default values to our function parameters.

We also see a few examples of how this can come in handy in our applications.