Quiz: Pressing Enter
const noteInput = document.querySelector("#note");
const noteList = document.querySelector("#notes");
noteInput.addEventListener("keydown", function (event) {
if (event.key === "enter") {
const item = document.createElement("li");
item.textContent = noteInput.value;
noteList.append(item);
noteInput.value = "";
}
});