|
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:

beginner-javascript/exercises/73 - Async Typer/scripts-FINISHED.js
Line 31 in ab2cb26
When passed to
getRandomBetween()here,typeMinandtypeMaxare still strings taken directly fromel.dataset. Not sure exactly how the function is treating these numeric strings under the hood, but it's not parsing them as ints: