what is javascript string code example
Example 1: js string
`hello world`
`hello!
world!`
`hello ${who}`
escape `<a>${who}</a>`
Example 2: js string
String(thing)
Example 3: js string
return 'cat'.charAt(1); // returns "a"
`hello world`
`hello!
world!`
`hello ${who}`
escape `<a>${who}</a>`
String(thing)
return 'cat'.charAt(1); // returns "a"