문제 설명 문자열 s가 있습니다. 이 문자열의 대/소문자를 서로 바꾸는 함수, solution을 완성해주세요. 예를 들어, s 'Naver'가 있을 때, 결과는 'nAVER' 입니다. - s는 길이가 100 이하의 문자열입니다. - s는 대/소문자로 구성되어 있습니다. 나의 풀이 1 2 3 4 5 6 7 8 9 10 11 function solution(s) { let answer = '' s.split('').forEach((str)=>{ if(str === str.toUpperCase()){ answer += str.toLowerCase() }else{ answer += str.toUpperCase() } }) return answer } Colored by Color Scripter cs 문제를 풀..