Convert number into text

Or you write your own RECOGNITION-ENGINE.:grin:

What do we need to know?
We will need to know the length of the Number.
For example…

1 00 → length = 3
3 000 → length = 4
5 0000- → length = 5

…and so on…

if (length===3) {console.log(“hundred”);}
if (length===4) {console.log(“thousend”);}
if (length===5) {console.log(x+“thousend”);}

Also you will need to get the first DIGIT of each Numbers… like…

1 00 → “one”
3 000 → “three”
5 0000- → “five”

Which elements we need to create our RECOGNITION-ENGINE?
Maybe a DATABASE?

Store all words and related Numbers inside DB.

Now your turn!!!