cart.js
// Function to remove items in cart 
Function to remove items in cart
Function to remove items in cart
function removeCartItem(event) {
    var buttonCliclked = event.target
    buttonCliclked.parentElement.parentElement.remove()
    updateCartTotal()
}
function removeCartItem ( event ) { var buttonCliclked = event . target buttonCliclked . parentElement . parentElement . remove ( ) updateCartTotal ( ) }
Function to remove items in cart
Function to remove items in cart