Is there a way to achieve the specified outcome in JavaScript? I attempted to find a method for it on MDN but was unsuccessful.
let a, b
let allNumbers = []
for (a = 10; a < 60; a = a + 10) {
for (b = 1; b <= 3; b++) {
allNumbers.push(a + b)
}
}
The expected result is an array within the allNumbers
array:
[[11,12,13], [21,22,23], [31,32,33], [41,42,43], [51,52,53]]