Modules, Files, and Async Work

Practice: Filesystem and async operations

Describe how you would read a JSON file, parse it, and handle a missing-file error.

Difficulty: Beginner

Your practice editor

Edit the starter code, run it, then submit it for safe code checks.

Preview runs browser-safe JavaScript in a sandboxed frame, never on the server.

javascript

editor

preview

Preparing preview...

Ready for feedback?

Your code is checked as text and is never executed on the server.

Login to save exercise progress

You can still practice, but attempts are only saved for logged-in learners.

stuck?

Compare with the solution

Try the task first. Then reveal the solution and compare it with your code.