Add additional number as text

This commit is contained in:
Fred Boniface 2023-09-26 21:25:26 +01:00
parent 0859b6a23a
commit bb12b98780

View File

@ -11,7 +11,7 @@
}
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];
if (word) {
return word;