코딩앙마님 강의듣고 정리한거임
let arr = [1, 2, 3, 4, 5];
arr.splice(1, 2);//[1,4,5]
arr.splice(1, 3, 100, 200)//[1, 100, 200, 5]
//2,3,4 빼고 100,200 넣음
let arr2 = ["나는", "철수", "입니당"];
arr2.splice(1, 0, "대한민국", "경찰");
//["나는", "대한민국", "경찰", "철수", "입니당"]
let arr = [1, 2, 3, 4, 5];
arr.slice(1, 4) //[2,3,4]
let arr3 = arr.slice();//[1, 2, 3, 4, 5]
let arr4 = [1, 2];
arr4.concat([3, 4], 5, 6); //[1,2,3,4,5,6]
let arr5 = ["안녕", "나는", "철수야"];
let result = arr5.join("."); //안녕.나는.철수야
let str = "열라면,먹고,싶음";
const result2 = str.split(","); //["열라면", "먹고", "싶음"]