Workshop › Text detective › Step 2 of 13
Every piece of text knows its length. We report how many characters the text has.
```js
result.textContent = 'Characters: ' + box.value.length
```.length of a text is how many characters it has, spaces and punctuation included.'Characters: ' + ... joins a label and the number into one text.Change the last line of the script as shown.
Skills: Types and values
← Read the text Update as you type →