scrimba
Bootcamp code reviews
πŸ‘©πŸΌβ€πŸ« Review of Christina's M5 Restaurant Ordering App
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

πŸ‘©πŸΌβ€πŸ« Review of Christina's M5 Restaurant Ordering App
AboutCommentsNotes
πŸ‘©πŸΌβ€πŸ« Review of Christina's M5 Restaurant Ordering App
Expand for more info
readme.md
run
preview
console
# Code Review: Restaurant Ordering App
### _Code by: Christina_
### _Reviewer: Felicity Evans_


## What you did well
- matched design
- form validation and submission
- use of data attributes
- use of aria-label


## What could be improved
- no remove button to remove from order
- not grouping items in cartArr

## Challenge
- Add remove button to order

## Code

const inCart = cartArr.filter(item => item.id == id)

if (inCart.length) {
inCart.quantity = inCart.quantity + 1
} else {
cartArr.push({...menuArray[id], quantity: 1})
}



Console
/index.html
-6:54