Home / Javascript Tips Generated By ChatGPT / Cloning Arrays in Javascript Create a copy of an array. Source Code let original = [1, 2, 3]; let clone = original.slice(); // Clone the array console.log(clone); // [1, 2, 3]