Default function parameters

The default func­tion para­me­ters in ES6, gives us the abil­ity to ini­tial­ize the func­tion argu­ments with default val­ues in case if they are unde­fined. For exam­ple, func­tion mult(a, b) { b = typeof b…