문제 설명 단어 s의 가운데 글자를 반환하는 함수, solution을 만들어 보세요. 단어의 길이가 짝수라면 가운데 두글자를 반환하면 됩니다. 입출력 예 s return "abcde" "c" "qwer" "we" 나의 풀이 1 2 3 4 5 6 7 8 9 function solution(s) { let answer = '' const arrS = s.split('') arrS.length % 2 !== 0 ? answer = arrS[Math.floor(arrS.length / 2)] : answer= arrS[Math.floor((arrS.length / 2) -1)] + arrS[Math.floor(arrS.length / 2)] return answer } Colored by Color Script..