Make that when the user clicks on the "Delete sentence" button, all the text in the input is deleted.
Show the number of words in the entered sentence. Whenever the user writes a new sentence in the input, the number of words must be updated in real-time. To get the individual words of a string, you can try using the
split method, for example:
const words = "This is my dog".split(" ");
Show the number of words starting with the letter "A" or "a" (uppercase or lowercase).
Show the number of words that end with the letter "Z" or "z" (uppercase or lowercase).
Show the first letter of the sentence.
Show the last letter of the sentence.
Show the sentence in reverse. For example for the phrase "I am learning React" it would show "tcaeR gninrael ma I".