Text Class in OOP in JavaScript
Make a class Text
that will perform some manipulations on text. Let the text be passed as a constructor parameter.
Make a method that will return the number of characters in the text.
Make a method that will return the number of letters in the text.
Make a method that will return the number of spaces in the text.
Create a method that will return the number of characters in the text minus spaces.
Make a method that returns an array of words.
Make a method that returns an array of sentences.