importance: 5

---

# Clear the element

Create a function `clear(elem)` that removes everything from the element.

```html run height=60
<ol id="elem">
  <li>Hello</li>
  <li>World</li>
</ol>

<script>
  function clear(elem) { /* your code */ }

  clear(elem); // clears the list
</script>
```
