---
title: "Discussion on \"Shallow Copy vs Deep Copy in JavaScript: A Common Confusion I Faced While Interviewing a Candidate!\" | Hashnode"
description: "Discussion on \"Shallow Copy vs Deep Copy in JavaScript: A Common Confusion I Faced While Interviewing a Candidate!\". During a recent interview with a candidate, we got into an interesting discussion about shallow copy and deep copy in JavaScript. Initially, I thought I had a solid understanding of the concept, but the candidate’s response made me stop and think for..."
url: "https://hashnode.com/posts/shallow-copy-vs-deep-copy-in-javascript-a-common-confusion-i-faced-while-interviewing-a-candidate/67a6291b14bbbac24777648c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Shallow Copy vs Deep Copy in JavaScript: A Common Confusion I Faced While Interviewing a Candidate!](https://roja-tech-journey.hashnode.dev/shallow-copy-vs-deep-copy-in-javascript-a-common-confusion-i-faced-while-interviewing-a-candidate?utm_source=hashnode&utm_medium=feed)

During a recent interview with a candidate, we got into an interesting discussion about shallow copy and deep copy in JavaScript. Initially, I thought I had a solid understanding of the concept, but the candidate’s response made me stop and think for...

Feb 7, 2025 · 4 min read · roja-tech-journey.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#frontend-development](https://hashnode.com/tag/frontend-development)

## Written by

[Roja Gnanavel](https://hashnode.com/@roja-gnanavel)

@roja-gnanavel · Chennai, Tamil Nadu, India

  
[View profile](https://hashnode.com/@roja-gnanavel)

JavaScript Developer

Seasoned Web Developer | 8+ Years of Experience As a passionate tech enthusiast, I've spent years devouring industry insights. But, I realized that my laziness was holding me back from sharing my knowledge. No more! Inspired by Instagram's visual storytelling, I'm now documenting my tech adventures on Hashnode. Follow me for valuable tech insights, and let's grow together!

## Responses 1

Markdown supported · ⌘↵ to post

[Kamatchi Subramani](https://hashnode.com/@kamatchiS)

[Feb 19, 2025](https://hashnode.com/posts/shallow-copy-vs-deep-copy-in-javascript-a-common-confusion-i-faced-while-interviewing-a-candidate/67a6291b14bbbac24777648c/comment/67b575f7f55f3ad53ae5b810)

Great initiative Riga
