Notice
Recent Posts
Recent Comments
Link
목록concat (1)
솔미는 성장중
length 배열의 길이(숫자) = 아이템 개수를 반환 console.log(arr.length) .at() 대상 배열을 인덱싱한다. 음수 값을 사용하면 뒤에서부터 인덱싱. ✨ 예시) 마지막 아이템 인덱싱 : .at()을 쓰면 훨씬 간결하다! const arr = ['A','B','C'] console.log(arr[arr.length-1]) //C console.log(arr.at(-1)) //C .concat() 대상 배열과 주어진 배열을 병합해 새로운 배열을 반환 concat을 사용하면 numbers의 [ ]가 벗겨져서 letters로 들어간다. const letters = ["a", "b", "c"]; const numbers = [1, 2, 3]; const alphaNumeric = lette..
JavaScript/표준 내장 객체
2023. 7. 20. 15:24