EduFlow
JavaScript Fundamentals

Checkpoint: Working with Data

Five questions on this section. Answer all of them, then see your score and why each answer is right or wrong.

Question 1 of 5

const names = expenses.map((e) => { e.label.toUpperCase(); }); gives an array of undefined. What is the fix?

Question 2 of 5

What does [5, 25, 100].sort() return?

Question 3 of 5

What does this log?

JavaScript
const settings = { currency: "USD", limits: { food: 400 } };
const copy = { ...settings };
copy.limits.food = 500;
copy.currency = "EUR";
console.log(settings.currency, settings.limits.food);
Question 4 of 5

Which expression returns a saved discount of 0 as 0, and uses 10 only when no discount was saved?

Question 5 of 5

Pocket marks expenses as “reviewed” and checks isReviewed(id) for every item on every render. Which structure fits best for the reviewed ids?

5 questions unanswered