js string object code example
Example 1: js string
String(thing)
Example 2: js string
let longString = "This is a very long string which needs " +
"to wrap across multiple lines because " +
"otherwise my code is unreadable.";
Example 3: js string
return 'cat'.charAt(1); // returns "a"
Example 4: js string
let longString = "This is a very long string which needs \
to wrap across multiple lines because \
otherwise my code is unreadable.";