task in simple terms:
There is an empty array.
There is an input and a button.
-User enters OFFER into input (For example: Hi! How are you?)
-Press the button
-In the array writes three values "hello!" "how are you?" (without spaces. and preferably also without signs :), but for now at least just without spaces).
I understand how to convey a common meaning.
In principle, I understand how to transfer 1 character to values.
And how to make him understand words separately?
Thank.