Const
A mapping of regular characters to their Unicode superscript equivalents. Used for converting numbers and basic mathematical symbols to superscript format. Commonly used for exponents, powers, and scientific notation.
SUPERSCRIPTS["2"] // Returns "²"SUPERSCRIPTS["3"] // Returns "³"// Usage in stringsconst squared = "x" + SUPERSCRIPTS["2"] // Returns "x²"const scientific = "1.2 × 10" + SUPERSCRIPTS["3"] // Returns "1.2 × 10³" Copy
SUPERSCRIPTS["2"] // Returns "²"SUPERSCRIPTS["3"] // Returns "³"// Usage in stringsconst squared = "x" + SUPERSCRIPTS["2"] // Returns "x²"const scientific = "1.2 × 10" + SUPERSCRIPTS["3"] // Returns "1.2 × 10³"
A mapping of regular characters to their Unicode superscript equivalents. Used for converting numbers and basic mathematical symbols to superscript format. Commonly used for exponents, powers, and scientific notation.