> For the complete documentation index, see [llms.txt](https://appsecurity.gitbook.io/devops/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://appsecurity.gitbook.io/devops/ppc/ppc-langs/frontend/js-ts/javascript/cases/otobrazhenie-rezultatov-spiskom.md).

# Отображение результатов списком

```markup
<html>
    <head>
        <title>Test</title>
    </head>
    <body>
    <ul id="events"></ul>
    <script>
        // UI
        const $events = document.getElementById('events');

        const newItem = (content) => {
            const item = document.createElement('li');
            item.innerText = content;
            return item;
        };
        
        // Output to list
        $events.appendChild(newItem('connect'));
    </script>
    </body>
</html>
```
