javascript rest-parameters | SoloLearn: Learn to code for FREE!


javascript rest-parameters

i haven't understood the rest parameters... can someone assist please

12/27/2019 10:42:50 AM

jonas Mwansa

1 Answer

New Answer


When you have a variable number of arguments, you can convert them into an Array with rest parameters, and then apply Array method on the arguments. See this demo by Paul: