Skip to content

thuyanduong-flatiron/cereals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Callbacks and Iterators

https://github.com/thuyanduong-flatiron/cereals

Concepts

  • functions as variables
  • Working with functions... that operate on functions!
  • .forEach, .map, .filter, .find, .reduce

Building our own forEach

  • map?
  • filter?
  • find?
  • reduce?

Writing Callbacks

  • as declarations
  • as expressions
  • a arrow functions

Objectives

Let's learn about cereal.

Goals:

  1. How many cereals in our data?
  2. Just the name of all the cereals?
  3. All cereals by a certain manufacturer?
  4. The names of all cereals manufactured by General Mills?
  5. Any cereal with calories between 80 and 100?
  6. All cereals with calories between 80 and 100?
  7. Sum of ratings?
  8. Average rating?
  9. Sort by calories?

What about callbacks for addEventListener

  • And what about that mysterious e parameter?

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published