You have been using strings
. What are they?
In coding, a string
is a piece of text - like a word or a sentence.
It is called a string
because each letter or character
follows on from the next. Imagine the letters hanging on a piece of string!
Usually, strings have double or single quote marks around them, like this:
"The quick brown fox"
'jumped over the lazy dog.'
characters
, one after another - "The fox"
"£"
""
.a
, b
, c
, A
, B
, C
, …0
, 1
, 2
, …
, percent %
, an emoji 🤗
, …strings
+
operator."The quick brown fox" + " " + "jumped over the lazy dog."
= "The quick brown fox jumped over the lazy dog."