I have the list displaying, but not displaying in an HTML ordered list. I know I somehow need to create a <li> element and attach it to the array. I don't know how to attach the array of items to a <li> element. Here is my code thus far.
let toDos = ['walk cat', 'pet fish'];
let listItems;
for (let i = 0; i < toDos.length; i++) {
let displayListItems = document.createElement('li');
listItems = toDos[i];
listContainer.append(listItems);
}