length() Returns the length of the current String Syntax Numeric length() Usage The length is equal to the number of Unicode code units in the string.