How do I pass text from one class to another?

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!