Debugging and Fixing Common JavaScript Errors

Challenge 1: Cannot Read Property

Debugging and Fixing Common JavaScript Errors

Check out a free preview of the full Debugging and Fixing Common JavaScript Errors course

The "Challenge 1: Cannot Read Property" Lesson is part of the full, Debugging and Fixing Common JavaScript Errors course featured in this preview video. Here's what you'd learn in this lesson:

In this challenge, students need to identify and fix a "Cannot Read Property" bug.

Preview
Close

Transcript from the "Challenge 1: Cannot Read Property" Lesson

[00:00:00]
>> So now I'm gonna turn it over. There's a second part of this book. Actually fixing that book. So we're gonna take ten minutes and do an exercise. This is exercise number 1 in the exercises folder. If you haven't already, it'll show you how to make the changes to add workspaces and add the prevent default.

[00:00:21]
And then figure out why are we getting cannot find whatever the error was. Cannot read property destroy of undefined. Let's take ten minutes, see if you can figure it out. After that, we'll come back together and we'll solve it together.

Learn Straight from the Experts Who Shape the Modern Web

  • In-depth Courses
  • Industry Leading Experts
  • Learning Paths
  • Live Interactive Workshops
Get Unlimited Access Now