Use AI to create:
- An array of 3 products (name, price, category)
- A function that filters products by minimum price
- A function that adds 20% tax to all prices
Your CRISP Prompt:
Create a JavaScript array of 3 products with name, price,
and category. Then create two functions:
1. filterByPrice(products, minPrice) - returns products >= minPrice
2. addTax(products, taxRate) - returns products with tax added to price
Use modern JavaScript (const, arrow functions, map/filter).
Verify:
- ✅ Uses const/let (no var)
- ✅ Arrow functions for callbacks
- ✅ map/filter used correctly