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
,symbol
typeof
↔ JS Operator returnstring
of Operand TypeString
↔ Autoboxing Wrapper forstring
Primitive.toString()
↔ to returnstring
of Source Code of calling functionUNNBBSS
↔undefined
,null
,number
,bigint
,boolean
,string
,symbol
_.camelCase(string)
↔ returnstring
with 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)
↔ returnstring
with kebab-case_.snakeCase(string)
↔ returnstring
with snake_case_.escape(string)
↔ returnstring
convert into HTML Entity (&
<
\>
"
'
)_.escapeRegExp(string)
↔ returnstring
with escaped characters for reserved RegExp special characters (&
$
.
*
+
?
(
)
[``]
{
}
|
)_.unescape(string)
↔ returnstring
with HTML Entity convert back to normal chars - !inverse_.escape(string)
^n
↔RegExp
Quantifier to matchn
string
at line begin?!n
↔RegExp
Quantifier to matchstring
not aftern
string?=n
↔RegExp
Quantifier to matchstring
aftern
stringHTML Entity
↔string
to display reserved invisible chars in HTMLProperty Key
↔ Label for property asstring
||symbol
JSON.parse()
↔ [JSON
](json_object) [API
](api) [Static Method
](static-method) to parsestring
into JS valueString Literal Type
↔ fixed set of specific values forstring
as typesString Enum
↔enum
withstring
as member valuesHeterogeneous Enum
↔enum
with mix ofnumber
&string
member valuesLiteral Enum Member
↔ Enum Member with Initializer either explicitly initialized vianumber
/string
Literal | omitted Initializer (implicit value)__filename
↔ Node Global Object to returnstring
of full path to file__dirname
↔ Node Global Object to returnstring
of directory path name containing fileModule Specifier
↔string
to identify & point to Module locationimport.meta.url
↔import.meta
property with URLstring
of current Modulevalue
↔ Attribute to set % progress (asstring
) for<progress\>
. Omit to set as :indeterminateDomain Name
↔string
identifier for IPTemplate Literal
↔ JS Syntax to Declarestring
via${}
decodeURI()
↔ to decode URI back tostring
encodeURI()
↔ to encodestring
to URI by escape char to rep UTF-8parseFloat()
↔ to parsestring
arg & returnnumber
as Floating-Pointeval()
↔ to evaluate Code arg asstring
at Runtime - bad for security/perfquery string
↔ argstring
to matchNode
for.querySelector()
&.querySelectorAll()
String Interpolation
↔ JS Syntax to insert value Expression intostring
/ArrayData URI
↔ Scheme to encode data asstring
& embed into HTMLkey
↔ specialprop
asstring
UID for VDOM to track/Diff list elements