|
const amountOfTimeToWait = getRandomBetween(typeMin, typeMax); |
When passed to getRandomBetween() here, typeMin and typeMax are still strings taken directly from el.dataset. Not sure exactly how the function is treating these numeric strings under the hood, but it's not parsing them as ints:
