카테고리 없음
[JS] 문자열 곱하기 repeat()
숭코기
2023. 3. 17. 10:13
728x90
// 입력받은 모든 문자를 길이만큼 모두 *로 치환
const setMasking = str => {
const result = '*'.repeat(str.length);
return result;
}
728x90