PrependChild in JavaScript

<ul id="app">
    <li>HTML</li>
</ul>

<script>
let app = document.querySelector('#app');

let langs = ['CSS','JavaScript','TypeScript'];

let nodes = langs.map(lang => {
    let li = document.createElement('li');
    li.textContent = lang;
    return li;
});

app.prepend(...nodes);
</script>
adens