Locked lesson.
About this lesson
What is a string?
Exercise files
Download this lesson’s related exercise files.
Strings.docx58.9 KB Strings - Solution.docx
58.9 KB
Quick reference
Strings
Let's learn more about strings! A string is a sequence of characters.
When to use
Strings are something that you're going to use all the time, whenever you write code.
Instructions
Strings can be wrapped in single or double quotes.
You can use the escape character "\" to print a quotation mark to the screen.
\n creates a line break.
Hints & tips
- Strings are wrapped in single or double quotes
- \ is an escape character
- \n means new line
Lesson notes are only available for subscribers.