+ 1

The result doesn't display in recursion concept

I'm making a function that take each name and salary in array and put it into array using push() method, but it doesn't work. Why this's happend and how to fix this? Please helpme!, i'm learning recursion concept now and i don't really understand with it, thank you in advance. https://code.sololearn.com/WHZR0s59Z5et/?ref=app

26th Jul 2020, 4:17 PM
Hafizd Jubaidir
Hafizd Jubaidir - avatar
1 ответ
+ 2
Maybe you want to do arrPeta.push instead of element.push
26th Jul 2020, 4:35 PM
Gabriel Ilie
Gabriel Ilie - avatar