Introduction
You've learned about strings and how they work together with variables and constants to enable you to do all sorts of things with text. Coding is impossible without declaring names for values, and strings are an essential kind of data found in almost all code, so these are foundational skills you'll use constantly. Now it's time to use some of your knowledge in the service of creativity, self-expression, and humor.
Challenge Yourself
Word games are a fun way to express yourself and to amuse others.
In this lesson's playground, you'll challenge your peers to play a word-substitution game that results in funny stories. You'll need to use your knowledge of declaring constants and variables, as well as string escape characters, concatenation, and interpolation.
To get started, open Word Games.playground in your course resources and follow the instructions.
Have fun!
Go Further
Now that you've built some fun games, think about how you might make them more fun or more interesting.
For example, how could you use variables instead of constants to build a story?
If you declared a number or a string as a variable, how could you modify it as you built the text of the story?