JS 배열 API 공부


JS 배열 API 공부

출처. https://www.youtube.com/watch?v=3CUjtKJ7PJg&t=122s API종류도 많고 Python의 map과 비슷한 개념과 .filter().join() 같이 두 번 연속으로 API를 쓰는 건 연습을 잘해야겠다. sort에서 .sort((a,b) => a-b) 는 정말 익숙하지 않다 ㄷㄷ // Q1. make a string out of an array const fruits = ['apple', 'banana', 'orange']; const result = fruits.join(','); console.log(result); //apple,banana,orange // Q2. make an array out of a string const fruits = 'apple, ..


원문링크 : JS 배열 API 공부