Text concepts
UTF-16 code unit
A 16-bit unit of string representation. Supplementary code points use two units when encoded as a valid surrogate pair.
Formal Syntax & Structure
javascript syntaxjavascript
text.length; text.charCodeAt(index);Working Example
Example Snippetjavascript
console.log("😀".length);