Workshop › Text detective › Step 1 of 13
A page that studies any text as you type: characters, words, the most common word, and the text in Caesar code. Your first real JavaScript: variables, functions, arrays, loops and a Map.
Our detective looks at any text and reports on it. First, JavaScript reads what is in the box and writes it under it.
```js
const box = document.querySelector('#text')
const result = document.querySelector('#result')
result.textContent = box.value
```document.querySelector('#text') finds the element with the id text (the box); # means id.box.value is what is written in the box.result.textContent puts text into the paragraph.Write the three lines on the empty line inside <script>.
Skills: HTML structure, Functions