Text Class in OOP in JavaScript
Задание 1
Make a class Text that will perform some manipulations on text. Let the text be passed as a constructor parameter.
Задание 2
Make a method that will return the number of characters in the text.
Задание 3
Make a method that will return the number of letters in the text.
Задание 4
Make a method that will return the number of spaces in the text.
Задание 5
Create a method that will return the number of characters in the text minus spaces.
Задание 6
Make a method that returns an array of words.
Задание 7
Make a method that returns an array of sentences.