Skip to Content
JavaScript Intermediate: Write Code That Doesn't Fall Apart When the Data Changes
Intermediate
0 likes
Courses
JavaScript Intermediate: Write Code That Doesn't Fall Apart When the Data Changes

Check Yourself: Work With Real Data

Five scenario questions on array methods, JSON and dates. If you miss more than one, reread the lesson that covers it.

Course content

Sign in to save your progress.

Course Home
2. Your daily revenue report crashes on a day with no orders: "Reduce of empty array with no initial value". Fix?
3. response.json() throws "Unexpected token '<', "<!DOCTYPE "... is not valid JSON". What did you most likely get?
4. After JSON.parse(JSON.stringify(order)), order.createdAt.getFullYear() throws. Why?
5. A customer in New York picks October 15. Your code does new Date("2026-10-15").getDate() and gets 14. Best fix?

About

Five scenario questions on array methods, JSON and dates. If you miss more than one, reread the lesson that covers it.

Duration
5 min
Last update
09/01/2026
Was this helpful?
​ 0 ​ 0

Comments (0)

Sign in to comment

No comments yet.