Objects

Spread Syntax (...)

Learn how to use Spread Syntax (...) in JavaScript.

Spread Syntax (…)

Documentation for Spread Syntax (…) in JavaScript.

Syntax

const copy = { ...original };

Example

// Practical usage
const copy = { ...original };
console.log("Executed successfully.");

Notes

JavaScript provides powerful built-in methods for the web.

Try It Yourself

You can run JavaScript directly in the BrowserCode Playground.