CurriculumExpansion
CurriculumExpansion copied to clipboard
chore: add workshop to teach loops in frontend cert(JS only)
The frontend cert will have a module just for loops. There will be a lecture block going into more detail about how to work with loops with examples. But we need a short(like 40 steps or less) workshop, for them to learn about loops interactively.
This workshop does not need to cover all the different types of loop because the lecture before this is covering a lot and providing them an introduction.
So we could just focus on a few like the while
and for...of
loop for example.
This will be complete list of concepts campers will know about so far before this workshop:
- let
- const
- assignment
- reassignment
- basic string usage
- console.log
- camelCase
- string concatenation using the + operator
- template literals
- str.length property
- bracket notation and retrieving characters from strings
- str.indexOf method
- Number()
- Math.floor
- Math.random
- getting a random number from a range
- prompt()
- ===
- if/else if/else
- true and false (truthy and falsey)
- comparison operators(< >=)
- logical operators (|| &&)
- array basics
- push
- pop
- shift
- unshift
- basic object usage
- for loop
- for...of
- for...in
- do...while
- while
Acceptance criteria
- [ ] create a new folder of the project in the
frontend-cert/js-projects
directory - [ ] add your completed project in an
script.js
file in that new folder