🔠 Javascript로 알파벳 리스트 만들기!
문제 ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'] 자바스크립트에서 다음과 같이 알파벳으로 이루어진 배열을 만들어보자! 해결 # 소문자 출력 Array.from({ length: 26 }, (v, i) => String.fromCharCode(i + 97)); Array(26).fill().map((v, i) => String.fromCharCode(i + 97)); # 대문자 출력 Array.from({ length: 26 }, (v, i) => String.fromCharCode(i + 65)); Array(26)...
2023. 1. 13.