May 29, 2015 JavaScript: Array assignment creates reference not copy 29 May 2015 Consider we have an array var a [1, 2, 3, 4; and we assign var b a; then b not a copy of a, b is a pointer to a.