[프로그래머스 문제풀이46]서울에서 김서방 찾기 자바스크립트

이ᄏᄋ·2021년 9월 29일
0
function solution(seoul) {
    for(let i=0;i<seoul.length;i++){
        const seobang=seoul[i];
        if(seobang ==="Kim")
            return `김서방은 ${i}에 있다`
    }
}

김이 한명밖에 없는 서울이라..

profile
미쳤다.

0개의 댓글