Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create checkCart function #44

Open
Chrstjan opened this issue Mar 6, 2024 · 0 comments
Open

Create checkCart function #44

Chrstjan opened this issue Mar 6, 2024 · 0 comments
Assignees
Labels
JavaScript JavaScript Production

Comments

@Chrstjan
Copy link
Owner

Chrstjan commented Mar 6, 2024

In the app.js file in the controller code region make a function called checkCart

The function should

  • Check if local stoarge is empty
  • If local storage is empty the function should call the displayEmptyCartMessage function
  • Else if local storage is not empty it should call the buildShoppingCart function
@Chrstjan Chrstjan added the JavaScript JavaScript Production label Mar 6, 2024
@Chrstjan Chrstjan self-assigned this Mar 6, 2024
Chrstjan added a commit that referenced this issue Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
JavaScript JavaScript Production
Projects
None yet
Development

No branches or pull requests

1 participant