Skip to main content

stringPrimitive Value rep an ordered sequence of Character

Character

Symbol (letters, numbers & punctuation)

UTF-8

(standard) Character Encoding

Unicode

(standard) most popular Character Set with most language Chars

References

  1. Primitive Valueundefined, null, number, bigint, boolean, string, symbol

  2. typeofJS Operator return string of Operand Type

  3. StringAutoboxing Wrapper for string Primitive

  4. .toString() ↔ to return string of Source Code of calling function

  5. UNNBBSSundefined, null, number, bigint, boolean, string, symbol

  6. _.camelCase(string) ↔ return string with camelCase (removes delimiters: whitespace, _ & -)

  7. String Mode ↔ If one Operand is string, Coercion other to string, & return concatenated string

  8. Number Mode ↔ If no Operand is string, Coercion to number & return sum

  9. Square Bracket NotationJS Syntax to access element from Object via (string) key

  10. _.kebabCase(string) ↔ return string with kebab-case

  11. _.snakeCase(string) ↔ return string with snake_case

  12. _.escape(string) ↔ return string convert into HTML Entity (& < \> " ')

  13. _.escapeRegExp(string) ↔ return string with escaped characters for reserved RegExp special characters (& $ . * + ? ( ) [``] { } |)

  14. _.unescape(string) ↔ return string with HTML Entity convert back to normal chars - !inverse _.escape(string)

  15. ^nRegExp Quantifier to match n string at line begin

  16. ?!nRegExp Quantifier to match string not after n string

  17. ?=nRegExp Quantifier to match string after n string

  18. HTML Entitystring to display reserved invisible chars in HTML

  19. Property Key ↔ Label for property as string || symbol

  20. JSON.parse()[JSON](json_object) [API](api) [Static Method](static-method) to parse string into JS value

  21. String Literal Type ↔ fixed set of specific values for string as types

  22. String Enumenum with string as member values

  23. Heterogeneous Enumenum with mix of number & string member values

  24. Literal Enum MemberEnum Member with Initializer either explicitly initialized via number/stringLiteral | omitted Initializer (implicit value)

  25. __filenameNode Global Object to return string of full path to file

  26. __dirnameNode Global Object to return string of directory path name containing file

  27. Module Specifierstring to identify & point to Module location

  28. import.meta.urlimport.meta property with URL string of current Module

  29. valueAttribute to set % progress (as string) for <progress\> . Omit to set as :indeterminate

  30. Domain Namestring identifier for IP

  31. Template LiteralJS Syntax to Declare string via ` to allow String Interpolation for any Expression via ${}

  32. decodeURI() ↔ to decode URI back to string

  33. encodeURI() ↔ to encode string to URI by escape char to rep UTF-8

  34. parseFloat() ↔ to parse string arg & return number as Floating-Point

  35. eval() ↔ to evaluate Code arg as string at Runtime - bad for security/perf

  36. query stringarg string to match Node for .querySelector() & .querySelectorAll()

  37. String InterpolationJS Syntax to insert value Expression into string/Array

  38. Data URIScheme to encode data as string & embed into HTML

  39. key ↔ special prop as string UID for VDOM to track/Diff list elements