[프로그래머스] 369게임

·2023년 2월 21일
0

프로그래머스_0단계

목록 보기
32/49
function solution(order) {
    var answer = [...order.toString().matchAll(/[3|6|9]/g)].length;
    return answer;
}
function solution(order) {
    return (''+order).split(/[369]/).length-1;
}
profile
개발자가 되는 과정

0개의 댓글