Open spookycutie08 opened 4 years ago
As a user, I want to be able to empty all of the items from my cart by clicking one button
WHEN I click a button in or around the Cart THEN all of the items inside should be removed AND the cart should be empty
merch.html
cart
emptyCart
merch.js
USER STORY
As a user, I want to be able to empty all of the items from my cart by clicking one button
AC
WHEN I click a button in or around the Cart THEN all of the items inside should be removed AND the cart should be empty
DEV NOTES
merch.html
, create a button in or near thecart
div with an event listener that calls anemptyCart
function when the button is clickedemptyCart
function inmerch.js
that reassigns the arraycart
to be an empty array, and then re-prints it to the DOM.