let arr = ["jason", "james", "jelani"];
let arrCopy = arr.slice();
//Note that this is "slice" and not "splice".
//arr.splice() would be very different!
console.log(arrCopy);//["jason", "james", "jelani"]
//Makes deep copy
arrCopy[0] = "jamil";
console.log(arr); //["jason", "james", "jelani"]
console.log(arrCopy);//["jamil", "james", "jelani"]