A String is a sequence of characters.
let salutation = "Hello";
To create a variable that holds a string:
-
Click
Variables(in the Block drawer). -
Type a name for your new string variable by clicking the down arrow, then click New Variable. Then type the variable name "salutation"
-
Drag a string block on the right side of the operator.
-
Click
"Hello"and then type a string likehello.
Your code should look something like this:
let salutation = "Hello";