← #130 Create a custom emoji cursor

Create a multiline strings

Topics: JavaScript

To create a multiline strings, the most common way is to concatenate them as shown below:

const multilineStrings = 'This is a\n' +
'multiline\n' +

Joining an array of strings is another approach:

const multilineStrings = [
'This is a',

ES6 introduces an easier way to do that. It uses the template literal which is delimited by backticks:

const multilineStrings = `This is a


Fix a typo or suggest an improvement
#132 Persist Console logs between page refreshes