String Values


Description
A string is zero or more characters written inside quotes. You can use single, double quotes or backticks to define their value.

You can combine multiple data values together via the + concatenation operator when one of the operands is a string.
Example Code
var singleQuotes = 'This is an example string.' var doubleQuotes = "This is an example string." var backTick = `This is an example string.` // Concatenation of several data values. var boolean = true var number = 3.14 var string = 'Hello world' var concat = string + ' ' + number + ' ' + boolean // This will have the value 'Hello world 3.14 true' and will be a string data type.