Don’t do:
text = text.split(delimiter)
Instead do:
const a = text.split(delimiter)
That way at the end of the program you can add
console.log({a, text})
and see both the array and the original text
Don’t do:
text = text.split(delimiter)
Instead do:
const a = text.split(delimiter)
That way at the end of the program you can add
console.log({a, text})
and see both the array and the original text