g.js
— graphical objects for JavaScript
Home
Get Started
Reference
About
Get started
Installation
Quick Start
Guides
Vector Graphics
Imaging
Geometry
Color
Lists
Math
Data
String
Animation
wordCount
Count the number of words in a string.
g.wordCount('Hello World');
See Also
stringLength
: Count the number of characters in a string.
Related Guides
Working with Strings