js string
snippet in javascript

js string

user4216

String(thing)

js string

user3978

return 'cat'.charAt(1); // returns "a"

js string

user4281

return 'cat'[1]; // returns "a"

js string

user7215

`hello world`
`hello!
 world!`
`hello ${who}`
escape `<a>${who}</a>`

js string

user9130

let longString = "This is a very long string which needs " +
                 "to wrap across multiple lines because " +
                 "otherwise my code is unreadable.";

js string

user5391

let longString = "This is a very long string which needs \
to wrap across multiple lines because \
otherwise my code is unreadable.";