[알고리즘] A를 #으로

soheeoott·2021년 5월 22일
0

알고리즘

목록 보기
9/9
post-thumbnail
function solution(str){
  const regex = /A/gi;
  return str.replace(regex, "#");
}
let str = "BANANA";
console.log(solution(str));
profile
📚 글쓰는 습관 들이기 📚

0개의 댓글