Learning to be careful!

When programming you sometimes need to watch out a bit. Suppose that (in javascript) you have the following: var a = [ 4, 5, 6 ]; Now, say you want, for whatever reason, to create a copy of that array and perform operations on the copy. For example, you have …continue reading