How to append html in JavaScript

DOM
Last updated Jul 28, 2018
<ul id="list"></ul>
const list = document.querySelector("#list");

list.insertAdjacentHTML("beforeend", `<li>Apple</li>`);