← Back to challenges

Uban Numbers

JavaScriptHardmathnumbersstringsvalidation

Instructions

A number n is called uban if its name (in English) does not contain the letter "u". In particular, it cannot contain the terms "four", "hundred", and "thousand", so the uban number following 99 is 1,000,000.

Write a function to determine if the given integer is uban.

Examples

isUban(456) ➞ false

isUban(25) ➞ true

isUban(1098) ➞ false

Notes

N/A

javascript
Loading editor…
to run
Walks through the solution with reasoning and edge cases.