Modern Agile/TIL

    Day 03 - 2021.12.08

    Day 03 - 2021.12.08

    과제 03 https://github.com/wooahan-agile/coding-test-study-3term/pull/37 문자열 다루기 기본 https://programmers.co.kr/learn/courses/30/lessons/12918 정규표현식 사용 Number()를 이용하려 했으나 Number() 사용 시 e도 지수로서 숫자로 변환이 가능하기 때문에 테스트를 통과하지 못했다. 추가적으로 조건을 더 붙이려고 했지만 코드가 점점 더러워지는 것을 보고 멘토의 도움을 받아 접근 방식을 정규표현식으로 바꾸어 풀었다. function solution(s) { const check = /[^0-9]/g; return (s.length === 4 || s.length === 6) && !check.te..

    Day 02 - 2021.12.07

    과제 02 과제 제출 후 코드리뷰 받았지만 실수록 삭제했던... https://github.com/wooahan-agile/coding-test-study-3term/pull/24/commits/9017d1f02a26e7efb9a50ce8c34bb900336350e2 코드 수정 후 다시 받은 리뷰 https://github.com/wooahan-agile/coding-test-study-3term/pull/28 수박수박수박수박수? https://programmers.co.kr/learn/courses/30/lessons/12922 function solution(n) { let answer = ''; let plusW=''; for (let i=0; i { strArr.push(String.fromCha..

    Day 01 - 2021.12.06

    Day 01 - 2021.12.06

    과제 01 https://github.com/wooahan-agile/coding-test-study-3term/pull/17 서울에서 김서방 찾기 https://programmers.co.kr/learn/courses/30/lessons/12919 function solution(seoul) { var answer = ""; for (let i in seoul) { if (seoul[i] == "Kim") { answer = `김서방은 ${seoul.indexOf(seoul[i])}에 있다`; } } return answer; } 짝수와 홀수 https://programmers.co.kr/learn/courses/30/lessons/12937 function solution(num) { var answ..