CloneArray test for stackoverflow JavaScript var a=[1, 2, 3, 4]; b = a; a = []; alert('a: '+a); alert('b: '+b);