[Baekjoon] 10699번 문제
Featured image of post [Baekjoon] 10699번 문제

[Baekjoon] 10699번 문제

백준 알고리즘

문제

image

풀이

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
/*
  [baekjoon / 10699]

  오늘 날짜 출력
*/

var date = new Date();
let year = date.getFullYear().toString();
let month = (date.getMonth() + 1).toString();
let day = date.getDate().toString();

solution(year, month.padStart(2, "0"), day.padStart(2, "0"));

function solution(param1, param2, param3) {
  var today = `${param1}-${param2}-${param3}`;
  console.log(today);
}

image

image

완료 ✅

Built with Hugo
Theme Stack designed by Jimmy