Search posts, tags, users, and pages
Understanding ES6 Default Parameters
Joy Opeyemi Oluwafemi
@JoyPaces · Nigeria
Web Developer | Technical Writer
I am a Web Developer and a Technical Writer. I love to build projects, talk and write about programming.
Markdown supported · ⌘↵ to post
Adebisi Oluwafemi
Nice U could make d function dynamic by taking array as an input and looping through it to add values. That way u take in only 1 argument nd can take tons of values as an array
You are right Adebisi, rest parameters which is also one of the features of ES6 parameters handles that.
Adebisi Oluwafemi
Nice U could make d function dynamic by taking array as an input and looping through it to add values. That way u take in only 1 argument nd can take tons of values as an array