How to add a newline character to a line of text?

How to add a newline character to a line of text?

To add a newline character to a line of text, just add ā€œ\nā€ to the text.