Skip to main content
100%

Character & Word Count

✓ Published0🌍 Public
Aangusgrant
Last edited Oct 19, 2022
Created on Oct 19, 2022

This example shows a live character and word counter for user-entered text. As the user types into a textarea, the page updates two counts in real time: the total number of characters and the number of words, calculated by splitting the input on spaces and filtering out empty strings. The visualization uses plain HTML, CSS, and vanilla JavaScript, with the `input` event listener on the textarea and the `querySelector` API to update the displayed counts. No external libraries or data sources are involved.

AI-generated description

Similar vizzes