30-45 minutes
Participants will be able to learn the basics of functional programming in JavaScript.
- mutation
- map
- filter
- What is Functional Programming
- Please go at your own pace with the following resource. There are 41 total exercises, and you're meant to do each one in order, since the exercises build on each other. This exercise is great for getting some extra practice with functional programming. If the exercises are too hard initially, you can set this resource aside for a later time. Interactive lesson in functional programming - great beginner's resource
var array = [1, 2, 3]
function add3(value) {
return value + 3;
}
array.map(add3)
Here's text about introducing something and how it works.
Build on the first information. Have participants guess things, do an activity, etc.
Make sure to mention these things:
- Things
- This is a sub-thing
- More things
- Even more things
- Even more things
This is something that participants might not realize or might assume at first.
Make sure they avoid this: thing
Have the participants work with you as you do something.
Class does this thing themselves with specific additional items.
Participants can try to do this other thing.
Have participants summarize to each other, make a cheat sheet, take a quiz, do an assignment, or something else that helps assess their understanding.