There's so much to know about JavaScript and jQuery! Take this longer-than-usual quiz about them.
You've implemented bubble sort as part of the course work. Now read up on a variation called comb sort. There is psuedocode included with that link.
Implement comb sort with JavaScript, and comment your code to explain what each part of the algorithm does.
Open comb-sort/combSort.js
to get coding.
To test the code quickly, open comb-sort/index.html
in your browser to run QUnit tests.
Create a dirt simple grocery list app with JavaScript and jQuery.
Open groceries/index.html
in your browser to view the app.
Add your code to groceries/groceries.js
.
- Add a grocery item via a form
- Remove a grocery item via a delete button next to the item in the list
- If the value submitted by the form is empty, do NOT create an item in the list
- Show a
No groceries
message when there are no items in the list - Show a flash message when a item is added/removed
- Show a flash message if the form submit value is empty
Bootstrap has been provided for you, but styling is not required. Don't lose time trying to make it pretty!