There is a task to decompose the numbers from a to b into divisors. These dividers need to be written into an array, which will be part of another array. This code just adds a bunch of divisors of different numbers. I also need the divisors of each number to be in a separate array so that you can work with them further.
function devide(x) { for (let a = 1; a <= x; a++) { if (x % a == 0) { divisors.push([a]) } } } Please tell me how to fix it. Thank you in advance!