Skip to content

Latest commit

 

History

History
73 lines (40 loc) · 1.95 KB

File metadata and controls

73 lines (40 loc) · 1.95 KB

Functional Programming

Projected Time

30-45 minutes

Prerequisites

Motivation

Objectives

Participants will be able to learn the basics of functional programming in JavaScript.

Specific Things To Teach

  • mutation
  • map
  • filter

Materials

Tweet about functional programming

Lesson

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

Common Mistakes / Misconceptions

This is something that participants might not realize or might assume at first.

Make sure they avoid this: thing

Guided Practice

Have the participants work with you as you do something.

Independent Practice

Class does this thing themselves with specific additional items.

Challenge

Participants can try to do this other thing.

Check for Understanding

Have participants summarize to each other, make a cheat sheet, take a quiz, do an assignment, or something else that helps assess their understanding.