String (initial support)
Widely available
The string type (and String
object) represents a sequence of characters.
Compatibility
- Chrome 1 Released on 2008-12-11
- Chrome Android 18 Released on 2012-06-27
- Edge 12 Released on 2015-07-29
- Firefox 1 Released on 2004-11-09
- Firefox for Android 4 Released on 2011-03-29
- Safari 1 Released on 2003-06-23
- Safari on iOS 1 Released on 2007-06-29
MDN docs
- String global object
- String.Symbol.iterator
- String.String
- String.charAt
- String.charCodeAt
- String.concat
- String.fromCharCode
- String.indexOf
- String.lastIndexOf
- String.length
- String.match
- String.replace
- String.search
- String.slice
- String.split
- String.substring
- String.toLowerCase
- String.toString
- String.toUpperCase
- String.trim
- String.valueOf
- Reference/Lexical_grammar#String_literals
Specifications
- ECMAScript Language Specification, from TC39 (Ecma International).
BCD data
- javascript.builtins.String
- javascript.builtins.String.@@iterator
- javascript.builtins.String.String
- javascript.builtins.String.charAt
- javascript.builtins.String.charCodeAt
- javascript.builtins.String.concat
- javascript.builtins.String.fromCharCode
- javascript.builtins.String.indexOf
- javascript.builtins.String.lastIndexOf
- javascript.builtins.String.length
- javascript.builtins.String.match
- javascript.builtins.String.replace
- javascript.builtins.String.search
- javascript.builtins.String.slice
- javascript.builtins.String.split
- javascript.builtins.String.substring
- javascript.builtins.String.toLowerCase
- javascript.builtins.String.toString
- javascript.builtins.String.toUpperCase
- javascript.builtins.String.trim
- javascript.builtins.String.unicode_code_point_escapes
- javascript.builtins.String.valueOf
- javascript.grammar.string_literals