Also, I need help with a (I think I can call it a bug) that happens when the user first write a text. My textarea comes with some default spaces already in it.
Hi @Newt ! Congratulations on your work!
I liked your selection of colors and font.
Regarding the JS code I would add the option that when a word is used only once, then phrase has a different value ("You have written $ {word} only once." , Eg.)
Regarding the “bug” you comment: you have a line break and several spaces in the textarea, before the </textarea> tag.
You can check it in the console:
let mysteriousBlanks = document.querySelector("textarea");
console.log(mysteriousBlanks.outerHTML);
mysteriousBlanks.textContent;
You can also verify that the error is fixed by removing them: