[프로그래머스 | Lv. 1 | JavaScript] 2016년
·
알고리즘/문제
Link코딩테스트 연습 - 2016년 문제풀이(1)function solution(a, b) { const DATE = ['SUN','MON','TUE','WED','THU','FRI',"SAT"]; const day = new Date(2016, a - 1, b); return DATE[day.getDay()]} 주의점let date = new Date();console.log(date.getFullYear()); // Yearconsole.log(date.getMonth()); // Month (0-11)console.log(date.getDate()); // Day of the month (1-31)console.log(date.getDay()); ..