string ↔ Primitive 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
Primitive Value↔undefined,null,number,bigint,boolean,string,symboltypeof↔ JS Operator returnstringof Operand TypeString↔ Autoboxing Wrapper forstringPrimitive.toString()↔ to returnstringof Source Code of calling functionUNNBBSS↔undefined,null,number,bigint,boolean,string,symbol_.camelCase(string)↔ returnstringwith camelCase (removes delimiters: whitespace, _ & -)String Mode↔ If one Operand isstring, Coercion other to string, & return concatenated stringNumber Mode↔ If no Operand isstring, Coercion tonumber& return sumSquare Bracket Notation↔ JS Syntax to access element from Object via (string) key_.kebabCase(string)↔ returnstringwith kebab-case_.snakeCase(string)↔ returnstringwith snake_case_.escape(string)↔ returnstringconvert into HTML Entity (&<\>"')_.escapeRegExp(string)↔ returnstringwith escaped characters for reserved RegExp special characters (&$.*+?()[``]{}|)_.unescape(string)↔ returnstringwith HTML Entity convert back to normal chars - !inverse_.escape(string)^n↔RegExpQuantifier to matchnstringat line begin?!n↔RegExpQuantifier to matchstringnot afternstring?=n↔RegExpQuantifier to matchstringafternstringHTML Entity↔stringto display reserved invisible chars in HTMLProperty Key↔ Label for property asstring||symbolJSON.parse()↔ [JSON](json_object) [API](api) [Static Method](static-method) to parsestringinto JS valueString Literal Type↔ fixed set of specific values forstringas typesString Enum↔enumwithstringas member valuesHeterogeneous Enum↔enumwith mix ofnumber&stringmember valuesLiteral Enum Member↔ Enum Member with Initializer either explicitly initialized vianumber/stringLiteral | omitted Initializer (implicit value)__filename↔ Node Global Object to returnstringof full path to file__dirname↔ Node Global Object to returnstringof directory path name containing fileModule Specifier↔stringto identify & point to Module locationimport.meta.url↔import.metaproperty with URLstringof current Modulevalue↔ Attribute to set % progress (asstring) for<progress\>. Omit to set as :indeterminateDomain Name↔stringidentifier for IPTemplate Literal↔ JS Syntax to Declarestringvia` to allow String Interpolation for any Expression via${}decodeURI()↔ to decode URI back tostringencodeURI()↔ to encodestringto URI by escape char to rep UTF-8parseFloat()↔ to parsestringarg & returnnumberas Floating-Pointeval()↔ to evaluate Code arg asstringat Runtime - bad for security/perfquery string↔ argstringto matchNodefor.querySelector()&.querySelectorAll()String Interpolation↔ JS Syntax to insert value Expression intostring/ArrayData URI↔ Scheme to encode data asstring& embed into HTMLkey↔ specialpropasstringUID for VDOM to track/Diff list elements