Intermediate JavaScript
Q55 / 100

What does structuredClone() do?

Correct! Well done.

Incorrect.

The correct answer is B) Creates a deep clone of an object, supporting more types than JSON serialization

B

Correct Answer

Creates a deep clone of an object, supporting more types than JSON serialization

Explanation

structuredClone() deep-copies objects including Date, Map, Set, ArrayBuffer, and circular references — unlike JSON.parse(JSON.stringify()).

Progress
55/100