Super simple to set Default Parameters with ES6 👏 The old way was to use a ternary operator to assign the…