<script src="../include.js"></script>
<script>
    test(() => {
        let testCounter = 1;
        function testPart(part) {
            println(`${testCounter++}. ${JSON.stringify(part())}`);
        }

        // 1. Get options from datalist
        testPart(() => {
            const datalist = document.createElement('datalist');
            for (let i = 0; i < 10; i++) {
                datalist.appendChild(document.createElement('div'));
            }
            for (let i = 0; i < 10; i++) {
       