freeCodeCamp/CurriculumExpansion

chore: add workshop for higher order functions (JS only)

Closed this issue · 0 comments

The frontend cert will have a module just for higher order functions.
There will be a lecture block going into more detail about how to work with callbacks and higher order functions with examples.
But we need a short(like 40 steps or less) workshop, for them to learn about higher order functions interactively.

This workshop does not need to cover all types of popular higher order functions (map, filter, reduce)
I would suggest just picking one or two of them.

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 loop
  • do/while loop
  • while loop
  • forEach loop
  • regular functions
  • arrow functions

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