clone() Example 1 clone() Example 1 This example defines an array [2,5,9], clones it, then adds a number to the original array. Finally, both arrays are displayed.
This example defines an array [2,5,9], clones it, then adds a number to the original array. Finally, both arrays are displayed.