JavaScript reference: strings

All information about JavaScript string properties and methods

The String object has a static method,String.fromCharCode(), Used to create a string representation based on a sequence of Unicode characters. Here, we use ASCII code to build a simple string

String.fromCodePoint(70, 108, 97, 118, 105, 111) //'Flavio'

You can also use octal or hexadecimal numbers:

String.fromCodePoint(0x46, 0154, parseInt(141, 8), 118, 105, 111) //'Flavio'

All other methods described here areInstance method: The method that runs on the string type.

Instance method

Strings provide some unique methods that can be used:

Download mine for freeJavaScript beginner's manual

More js tutorials: