malliktalksjava.com
ES6 Default Function Parameters
Unlike the defining the default values in JavaScript, ES6 has provided a flexibility to define the default values during the function definition time. In regular Javascript, we define a variable w…