I\'m trying to create a new li element using a text input. The problem is while the text is appearing, it doesn\'t to create an actual li element that
li
You are appending text you need to append listItem. Check this out:
text
listItem
Your code:
list.appendChild(text);
How it should be:
list.appendChild(listItem);
Best!