프로그래머스(코딩 테스트)/Lv.0
특정한 문자를 대문자로 바꾸기
걍가영
2024. 10. 15. 22:47
// javascript
const solution = (my_string, alp) => {
return my_string.replaceAll(alp, alp.toUpperCase());
}
// typescript
const solution = (my_string:string, alp:string):string => {
return my_string.replaceAll(alp, alp.toUpperCase());
}