Edit in JSFiddle

let arr = [1,2,3];
let a1 = [...arr];
console.log(a1);
a1.push(4);
console.log('a1',a1);
console.log('arr',arr);