BugHunt

JavaScript object exercises

Objects fail in JavaScript by handing back undefined: a property that is not there, a nested value one level too deep, a counter that was never initialised and is now NaN. These exercises are short functions with one such bug each.

Find where the undefined first appears, fix it, and run the tests.

See the 9 exercisesOr follow the 30-day path

The objects bugs you will meet

The exercises

Errors you might be searching for

More JavaScript practice by topic

Questions

How hard are these?

Mostly medium and hard. If you are just starting, the JavaScript array exercises are a gentler place to begin.

Do they run in the browser?

Yes, in a sandboxed Web Worker. Nothing to install.