Showing
2 changed files
with
25 additions
and
0 deletions
feature-holiday-counter/.vscode/launch.json
0 → 100644
1 | +{ | ||
2 | + // IntelliSense를 사용하여 가능한 특성에 대해 알아보세요. | ||
3 | + // 기존 특성에 대한 설명을 보려면 가리킵니다. | ||
4 | + // 자세한 내용을 보려면 https://go.microsoft.com/fwlink/?linkid=830387을(를) 방문하세요. | ||
5 | + "version": "0.2.0", | ||
6 | + "configurations": [ | ||
7 | + { | ||
8 | + "type": "pwa-node", | ||
9 | + "request": "launch", | ||
10 | + "name": "Launch Program", | ||
11 | + "skipFiles": [ | ||
12 | + "<node_internals>/**" | ||
13 | + ], | ||
14 | + "program": "${workspaceFolder}\\app.js" | ||
15 | + } | ||
16 | + ] | ||
17 | +} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
feature-holiday-counter/app.js
0 → 100644
1 | +const today = new Date("2022-05-12"); //오늘 날짜 입력 | ||
2 | +const holiday = new Date("2022-10-01"); //공휴일 날짜 입력 | ||
3 | + | ||
4 | +const diffDate= today.getTime() - holiday.getTime(); | ||
5 | + | ||
6 | +const dday= Math.abs(diffDate / (1000 * 3600 * 24)); | ||
7 | + | ||
8 | +console.log(dday); | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or login to post a comment