onsa
2/11/2017 - 8:54 PM

Strings

Strings

// template strings (= strings that use backticks) can be interpolated with variables using ${}
var name = 'Tyrone';
var greeting = `Hi ${name}, how are you?`

// template strings can be multiline
var multiline = `This is an example
of a multiline string`;