freeCodeCamp / CurriculumExpansion

Creative Commons Attribution Share Alike 4.0 International
313 stars 105 forks source link

chore: add shopping list arrays workshop to frontend cert(JS only) #423

Closed jdwilkin4 closed 2 months ago

jdwilkin4 commented 3 months ago

The frontend cert will have a module just for arrays. There will be two lecture blocks going into more detail about how to work with arrays and their methods. But we need a short(like 40 steps or less) workshop, for them to learn about arrays interactively.

One idea I had was a small shopping list app. We could have campers learn about push, pop, shift and unshift by adding and removing items from their list. we could also have them learn how to change items are certain indices.

something along the lines of this:

const shoppingList = [];
shoppingList.push('Apples');
console.log(`Current Shopping List: ${shoppingList}`);
shoppingList.push('Grapes');
console.log(`Current Shopping List: ${shoppingList}`);
shoppingList.unshift('Milk');
console.log(`Current Shopping List: ${shoppingList}`);
// etc.

This will be complete list of concepts campers will know about so far before this workshop:

Acceptance criteria