<ul class='todolist' ></ul>

let todolist = ["Goto Bazar","Goto Market","Goto School"];
let ul = document.querySelector(".todolist");
function render() {
  ul.innerHTML = "";
  todolist.map((item) => {
    let li = document.createElement("li");
    li.innerHTML = item;
    ul.appendChild(li);
  })
}
render();

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.