References: Two Names, One Object Quiz

Interactive Quiz ⋅ 12 Questions
By Stephen Gruppetta

In this quiz, you’ll test your understanding of References: Two Names, One Object.

By working through this quiz, you’ll revisit how two names can point at one array or object, .slice(), .splice(), .concat(), and .reverse(), comparing with ===, destructuring, spread and rest, and updates that leave the original data untouched.

Most questions show a short program and ask what it prints when you run it in JavaScript. Good luck!

The quiz contains 12 questions and there is no time limit. You’ll get 1 point for each correct answer. At the end of the quiz, you’ll receive a total score. The maximum score is 100%. Good luck!

Related Resources

A developer swaps a plate on a tall meal plan tower as two signs, LASTWEEK and THISWEEK, point arrows at the same slot, beside a COPY press making a separate tray.

Course

References: Two Names, One Object

Learn why a quick copy can change the original in JavaScript. Trace two names to one object, make shallow copies, compare by identity and contents, and build a meal planner in Node that leaves last week untouched.

intermediate js