Three options for copying objects in JavaScript: reference copy using the assignment operator, shallow copy using Object.assign() or the spread operator, and deep copy using JSON.parse() and JSON.stringify().
Sort: