g.js — graphical objects for JavaScript

stringLengthstringLength

Count the number of characters in a string.

g.stringLength('Hello');

Parameters

  • s: The input string.

See Also

  • wordCount: Count the number of words in a string.