Hi i want to generate every possible interval from 0.1 to 46.61
my expected result must look like this
0.1 0.2 0.3 ... ... 46.1 46.2 46.3 46.4 46.5 46.6
Here is what i have tried but not working correctly
let wholeDuration = 46.61;
let interval = 0.1, res = [];
for(let i = 0; i < wholeDuration; i++){
res.push(interval * i)
}
console.log(res);