Checking for Equality

Learn various approaches for checking for equality in this lesson.

A failing equality test

The project for this lesson will be a little familiar from the last lesson. The difference from the last lesson is that we are checking the returned objects using the toBe matcher:

  id: 1,
  firstName: "Bill",
  lastName: "Peters",

A copy of the starter project is in the code widget below:

Get hands-on with 1200+ tech skills courses.