Skip to content

Latest commit

 

History

History
33 lines (19 loc) · 620 Bytes

File metadata and controls

33 lines (19 loc) · 620 Bytes

String

A String is a sequence of characters.

#intro

Create a string variable

let salutation = "Hello";

To create a variable that holds a string:

  1. Click Variables (in the Block drawer).

  2. Type a name for your new string variable by clicking the down arrow, then click New Variable. Then type the variable name "salutation"

  3. Drag a string block on the right side of the operator.

  4. Click "Hello" and then type a string like hello.

Your code should look something like this:

let salutation = "Hello";

#examples

See also #seealso

Number