© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Adebisi Oluwafemi
Php, Javascript, React,
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
Joy Opeyemi Oluwafemi
Web Developer | Technical Writer
You are right Adebisi, rest parameters which is also one of the features of ES6 parameters handles that.