Learn Basic OOP by Building a Shopping Cart - Step 59

Tell us what’s happening:

I am unsure why the code is not passing. I have reset this step many times. can someone pls guide me where i am wrong in my code please?

Your code so far

<!-- file: index.html -->

/* file: script.js */
// User Editable Region

  }
  clearCart() {
    if (!this.items.length) {
      alert("Your shopping cart is already empty");
      return;
    }

    const isCartCleared = confirm(
      "Are you sure you want to clear all items from your shopping cart?"
    );

    if (isCartCleared) {
      this.items = [];
      this.total = 0;
      productsContainer.innerHTML = "";

      totalNumberOfItems.textContent = 0;
      cartSubTotal.textContent = "0";  // Set to 0 as per the instructions
      cartTaxes.textContent = "$0.00";
      cartTotal.textContent = "$0.00";
    }
  }

// User Editable Region
/* file: styles.css */

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36

Challenge Information:

Learn Basic OOP by Building a Shopping Cart - Step 59

All three values are written as strings but they just wanted the number zero to be the value.