Project brief
Build a student grade manager and a word-frequency counter. The first project practises arrays and objects; the second practises loops and counting with a map-like object.
This is a workbook project in the JavaScript track. It has no single prescribed solution: build it in your own file, test it in the browser or Node, and compare your result with the checklist below.
What you will practise
- Arrays
- Objects
- Loops
Build it step by step
- Represent students as objects with a name and a list of scores.
- Compute each student's average, the class average and the highest score.
- Print a small table sorted by average.
- For the word counter, split a paragraph into words, normalise case and punctuation, and count occurrences.
- Print the five most frequent words.
Stretch goal
Add one feature that is not in the list above, then write down why you chose it and what you had to change. Keep the feature small enough to finish in one sitting.
Before you move on
- The project runs without errors in a fresh browser tab or Node process.
- Empty, missing and invalid inputs are handled deliberately.
- The code is split into small functions with clear names.
- You can explain every line you wrote.
Topics: Arrays, Objects, Loops.