I’m trying to get an array containing hour:minutes using only one loop. so at the end I can get something close to: [0:00, 0:01... 23:58, 23:59] I know I can do it using two for loops such as:
for (var i=0;i<24;i++) {
for (var j=0;j<60;j++) {
// push i and j accordingly
}
}
Here’s my go:
(i/60)|0is a stupid way to doMath.floornow that I’m looking at it.