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

0

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

+1

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: https://code.sololearn.com/WKoFA3OmpVzY/?ref=app https://www.sololearn.com/post/56637/?ref=app https://code.sololearn.com/Wyr76080kKxS/?ref=app