Explain it in 60 seconds
Reference vs value in JavaScript
Frontend Engineering · JavaScript Core · Beginner
How are objects and primitives passed and copied in JavaScript?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Primitives copied by value.
- Objects: variables hold references.
- Assigning copies the reference, not object.
- Mutations visible through all references.
- Copy with spread/structuredClone when needed.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.