barbarian meets coding

added by Jaime González
5/30/2015 8:07:25 AM

2 Kicks, 267 Views

In the last couple of articles we learned some useful patterns with functions in JavaScript that helped us achieve default arguments and multiple arguments and we saw how ECMAScript 2015 (ES6) can simplify the way we can incorporate either of these in our code. Today I will close this section – useful function patterns – with some tips on how you can achieve function overloading in JavaScript. Hope you like it!