Skip to content

Commit

Permalink
대문자와 소문자
Browse files Browse the repository at this point in the history
  • Loading branch information
dudwns committed Mar 26, 2023
1 parent 9cc2ea8 commit 021afe5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Programmers/exam42.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
function solution(my_string) {
let answer = "";
for (let a of my_string) answer += a === a.toLowerCase() ? a.toUpperCase() : a.toLowerCase();
return answer;
}

0 comments on commit 021afe5

Please sign in to comment.