Để thêm dòng mới trong Unordered List, dùng document.querySelector().append(). Dưới đây là mã:
Ví dụ
Document Adding Name Demo
List Of Name
Chạy: lưu file anyName.html(index.html), chuột phải chọn "Open with Live Server" trong VS Code.
Kết quả
Kết quả đầu ra:

Nhập tên 'John':

Click Save:

Nhập 'Bob':

Click Save:
