Advanced
JavaScript
Q66 / 100
What is the difference between structuredClone and the history state algorithm?
Correct! Well done.
Incorrect.
The correct answer is B) structuredClone uses the same Structured Clone Algorithm used by postMessage, history.pushState, and IndexedDB to deep-serialize transferable objects
B
Correct Answer
structuredClone uses the same Structured Clone Algorithm used by postMessage, history.pushState, and IndexedDB to deep-serialize transferable objects
Explanation
The Structured Clone Algorithm supports more types than JSON (Date, Map, Set, ArrayBuffer, circular refs) and is shared by structuredClone, postMessage, and storage APIs.
Progress
66/100