Skip to main content

String

The String type represents text. Strings are enclosed in single or double quotes. In Easel, strings are immutable. Each time you modify a string, a new string is created and returned.

String literals can be specified in either double or single quotes:

'Hello, world!'
"Hello, world!"

// Concatenate strings using the + operator
"Hello" + ', ' + "world!"