+ 1

javascript rest-parameters

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

27th Dec 2019, 10:42 AM
jonas Mwansa
jonas Mwansa - avatar
1 Réponse
+ 3
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
27th Dec 2019, 2:51 PM
Gordon
Gordon - avatar