Answers for "js string"

5

js string

`hello world`
`hello!
 world!`
`hello ${who}`
escape `<a>${who}</a>`
Posted by: Guest on January-04-2021
4

js string

String(thing)
Posted by: Guest on January-04-2021
2

js string

return 'cat'.charAt(1); // returns "a"
Posted by: Guest on January-04-2021
0

js string

let longString = "This is a very long string which needs \
to wrap across multiple lines because \
otherwise my code is unreadable.";
Posted by: Guest on January-04-2021
0

js string

let longString = "This is a very long string which needs " +
                 "to wrap across multiple lines because " +
                 "otherwise my code is unreadable.";
Posted by: Guest on January-04-2021
-1

js string

return 'cat'[1]; // returns "a"
Posted by: Guest on January-04-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language