+ 4

How to use loop to store data into an array in JS

In the given program, I wanted to store all the number that are dividers of any number a. Even though I have written a if-else condition, the array stores undefined values. How to filter those undefined data from the array?? https://code.sololearn.com/W6z3ig07SyuE/?ref=app

20th Aug 2018, 10:44 PM
Gaurav Zaiswal
Gaurav Zaiswal - avatar
1 Antwort