<ul class="list">
    <li class="list-item">List Item</li>
    <li class="list-item">List Item</li>
    <li class="list-item">List Item</li>
    <li class="list-item">List Item</li>
    <button class="add-btn">Add New Item</button>
</ul>
*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.2;
}
body{
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}
.list{
    margin-top: -10px;
    list-style: none;
}
.list-item{
    line-height: 7rem;
    width: 300px;
    text-align: center;
    font-size: 3.5rem;
    margin-top: 10px;
    height: 7rem;
    background-color: lightgray;
    overflow: hidden;
    cursor: pointer;
}
.add-btn{
    background-color: transparent;
    border: 1px solid black;
    margin-top: 10px;
    width: 300px;
    text-align: center;
    cursor: pointer;
    height: 7rem;
    line-height: 7rem;
    font-size: 2.5rem;
}
const addBtn = document.querySelector('.add-btn');
const list = document.querySelector('.list');

function removeListItem(e){
    const item = e.target;
    item.remove();
}

//DOCUMENT LOAD
document.querySelectorAll('.list .list-item').forEach(function(item) {
    item.onclick = removeListItem;
});

addBtn.onclick = function(e){
    const item = document.createElement('div'); item.classList.add('list-item'); item.innerHTML = 'List Item';
    addBtn.parentNode.insertBefore(item, addBtn);
    item.onclick = removeListItem;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.