.length / .toUpperCase
Length and case conversion.
Syntax
s.length s.toUpperCase s.toLowerCase
Description
length gives the number of characters. toUpperCase/toLowerCase convert cases (returns new text).
Example
Loading editor…
This language is for reference/learning only — copy the code and try it in your own environment.
Expected output
10 HEXLIBRARY hexlibrary
When to use?
Input validation, text normalization.