length Summary Returns the number of characters in the string. Usage public property int length() Returns The number of characters in the string. Description Returns the number of characters in the string. Examples Basic Usage 1234import System; Console.log("abc".length); // 3Console.log("Hi".length); // 2 Share HTML | BBCode | Direct Link