0

I want to know the difference between the following two ways of assigning values to a array.

const arr1 = ["hello", "world"]
const arr2 = arr1
const arr3 = [...arr1]

How arr2 and arr3 are different?

0 Answers0