`typeof n !== 'number'` would be more resilient. It's also better to do the type checking up-front, as you did in Question 3. Here you're going ahead and doing the numeric comparisons first, which could give unexpected results.