How to append html in JavaScript

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

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