Add additional number as text
This commit is contained in:
parent
0859b6a23a
commit
bb12b98780
@ -11,7 +11,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function numberAsWord(number) {
|
function numberAsWord(number) {
|
||||||
const words = ['zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight'];
|
const words = ['zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine'];
|
||||||
let word = words[number];
|
let word = words[number];
|
||||||
if (word) {
|
if (word) {
|
||||||
return word;
|
return word;
|
||||||
|
Loading…
Reference in New Issue
Block a user