Skip to content

Commit

Permalink
문자 반복 출력하기
Browse files Browse the repository at this point in the history
  • Loading branch information
dudwns committed Mar 23, 2023
1 parent ed76b78 commit 2bf982f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Programmers/exam18.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
function solution(my_string, n) {
return my_string
.split("")
.map((str) => str.repeat(n))
.join("");
}

0 comments on commit 2bf982f

Please sign in to comment.