(delaysArr)
| 171 | // 701408733 -> bark -> bazaar -> food |
| 172 | |
| 173 | function delayedPrinter(delaysArr) { |
| 174 | if (!delaysArr.length) return; |
| 175 | |
| 176 | const currentDelay = delaysArr.shift(); |
| 177 | console.log(currentDelay); |
| 178 | |
| 179 | // delayedPrinter(delaysArr); |
| 180 | setTimeout(delayedPrinter, currentDelay, delaysArr); |
| 181 | } |
| 182 | |
| 183 | // const delaysArr = [1000, 900, 800, 700, 600, 500, 400, 300, 200, 100]; |
| 184 | // delayedPrinter(delaysArr) |
nothing calls this directly
no outgoing calls
no test coverage detected