git clone [email protected]:kenziebottoms/nss-front-02-sales.git
cd nss-front-02-sales
npm install
grunt
hs -o
You work as a developer for a big box store.
- Here is a JSON representation of a small sample of the products you sell.
- Here is a JSON representation of some of the departments in your stores.
- Build a web page that lists all of the products, the name of the department it's in, and the price.
- Put a
<select>
element at the top of the page that contains all possible values of theseason_discount
key in the categories file. - As soon as you select one of the seasons, all prices on the page should immediately be discounted by the corresponding percentage.
- Example: When "spring" is chosen, all products in the corresponding Household category should have their prices updated with a 15% discount off the base price.
- The two JSON representations above should be in
products.json
, andcategories.json
. Load both files via XHRs and store the contents in two different JavaScript variables in your code.
- Use JSON Lint to validate your JSON documents.