String Static Methods

String.fromCharCode()

Returns a string created by using the specified sequence of Unicode values.

String.fromCodePoint()  

Returns a string created by using the specified sequence of code points.

String.raw()  

Returns a string created from a raw template string. Special characters are not escaped, but expressions are interpolated.


RESETRUNFULL
<!DOCTYPE html><html><body><script>

console.log("abcd".charAt(2));  // cconsole.log(String.fromCharCode(65, 66, 67));  // ABCconsole.log(String.fromCodePoint(194564));     // 你 console.log(String.fromCodePoint(
   0x1D306, 0x61, 0x1D307));//"\uD834\uDF06a\uD834\uDF07"console.log(String.raw`Hi\n${2+3}!`);  // Hi\n5!console.log(String.raw(
           {raw: ['foo', 'bar', 'baz'] }, 2 + 3, 'Java' + 'Script'));                                                 // 'foo5barJavaScriptbaz')

</script></body><html>