1. Home
  2. Computer Science MCQs
  3. Javascript
  4. Which method deep-clones an object in JS?

Added 14 Sep 2025

Which method deep-clones an object in JS?

  1. Object.assign()
  2. JSON.parse/stringify
  3. _.cloneDeep
  4. structuredClone() Correct answer

Correct answer

D. structuredClone()

14 views

MCQSEXAM

Explanation

structuredClone() is native deep copy.

Reference

https://developer.mozilla.org/en-US/docs/Web/API/structuredClone

Doubts & discussion

Not sure why the answer is D? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Javascript MCQs

Practise all Javascript MCQs

Similar MCQs